Lines Matching refs:log_mod
52 * @param[in] log_mod - log module info
59 bfa_log_init(struct bfa_log_mod_s *log_mod, char *instance_name,
70 if (log_mod) {
71 strncpy(log_mod->instance_info, instance_name,
72 sizeof(log_mod->instance_info));
73 log_mod->cbfn = cbfn;
75 log_mod->log_level[i] = BFA_LOG_WARNING;
97 cbfn(log_mod, msg_id,
106 cbfn(log_mod, msg_id,
130 cbfn(log_mod, msg_id, "%s%s log: init OK, msg total count %u\n",
142 * @param[in] log_mod - log module info
149 bfa_log_set_level(struct bfa_log_mod_s *log_mod, int mod_id,
158 if (log_mod)
159 log_mod->log_level[mod_id] = log_level;
169 * @param[in] log_mod - log module info
175 bfa_log_set_level_all(struct bfa_log_mod_s *log_mod,
183 if (log_mod) {
185 log_mod->log_level[mod_id] = log_level;
197 * @param[in] log_mod - log module info
203 bfa_log_set_level_aen(struct bfa_log_mod_s *log_mod,
208 if (log_mod) {
210 log_mod->log_level[mod_id] = log_level;
222 * @param[in] log_mod - log module info
228 bfa_log_get_level(struct bfa_log_mod_s *log_mod, int mod_id)
233 if (log_mod)
234 return log_mod->log_level[mod_id];
240 bfa_log_get_msg_level(struct bfa_log_mod_s *log_mod, u32 msg_id)
253 bfa_log_info[mod].cbfn(log_mod, msg_id,
262 bfa_log_info[mod].cbfn(log_mod, msg_id,
279 * @param[in] log_mod - log module info
286 bfa_log(struct bfa_log_mod_s *log_mod, u32 msg_id, ...)
304 (log_mod, msg_id,
315 (log_mod, msg_id,
322 log_level = log_mod ? log_mod->log_level[mod] : bfa_log_info[mod].level;
331 if (log_mod)
332 log_mod->cbfn(log_mod, msg_id, "%s[%s]%s%s %s: %s\n",
333 BFA_LOG_CAT_NAME, log_mod->instance_info,
338 bfa_log_info[mod].cbfn(log_mod, msg_id, "%s%s%s %s: %s\n",