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