qcacmn: Change default firmware log levels
Change default log level for all firmware modules and also per module with a specific log level. Change-Id: I33275f2737e0e56daea4e2edd8debca8016f1ed0 CRs-Fixed: 2013439
This commit is contained in:
@@ -1326,12 +1326,9 @@ int dbglog_set_log_lvl(wmi_unified_t wmi_handle, enum DBGLOG_LOG_LVL log_lvl)
|
|||||||
|
|
||||||
int dbglog_set_mod_log_lvl(wmi_unified_t wmi_handle, A_UINT32 mod_log_lvl)
|
int dbglog_set_mod_log_lvl(wmi_unified_t wmi_handle, A_UINT32 mod_log_lvl)
|
||||||
{
|
{
|
||||||
A_UINT32 val = 0;
|
|
||||||
/* set the global module level to log_lvl */
|
/* set the global module level to log_lvl */
|
||||||
WMI_DBGLOG_SET_MODULE_ID(val, (mod_log_lvl / 10));
|
|
||||||
WMI_DBGLOG_SET_LOG_LEVEL(val, (mod_log_lvl % 10));
|
|
||||||
wma_config_debug_module_cmd(wmi_handle, WMI_DEBUG_LOG_PARAM_LOG_LEVEL,
|
wma_config_debug_module_cmd(wmi_handle, WMI_DEBUG_LOG_PARAM_LOG_LEVEL,
|
||||||
val, NULL, 0);
|
mod_log_lvl, NULL, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user