/* BFA log set log level for a module */
bfa_status_t bfa_log_set_level(struct bfa_log_mod_s *log_mod, int mod_id, enum bfa_log_severity log_level)
/* BFA log set log level for a module */
bfa_status_t bfa_log_set_level(struct bfa_log_mod_s *log_mod, int mod_id, enum bfa_log_severity log_level)
{
	if (mod_id <= BFA_LOG_UNUSED_ID || mod_id > BFA_LOG_MODULE_ID_MAX)
		return BFA_STATUS_EINVAL;
	if (log_level <= BFA_LOG_INVALID || log_level > BFA_LOG_LEVEL_MAX)
		return BFA_STATUS_EINVAL;
	if (log_mod)
		log_mod->log_level[mod_id] = log_level;
	else
		bfa_log_info[mod_id].level = log_level;
	return BFA_STATUS_OK;
}