mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
qcacmn: Fix excessive console logging from qdf set print level
qdf set print verbose level is using pr_info to log debug logs and pr_info logs are logged on console hence change pr_info to pr_debug to avoid logging debug logs on console. Change-Id: I43ccef244c9576483f1520c0a5027ac88e0cbb07 CRs-Fixed: 2342962
This commit is contained in:
parent
7b5131b757
commit
1803278802
1 changed files with 5 additions and 5 deletions
|
|
@ -3343,25 +3343,25 @@ QDF_STATUS qdf_print_set_category_verbose(unsigned int idx,
|
|||
{
|
||||
/* Check if index passed is valid */
|
||||
if (idx < 0 || idx >= MAX_PRINT_CONFIG_SUPPORTED) {
|
||||
pr_info("%s: Invalid index - %d\n", __func__, idx);
|
||||
pr_err("%s: Invalid index - %d\n", __func__, idx);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/* Check if print control object is in use */
|
||||
if (!print_ctrl_obj[idx].in_use) {
|
||||
pr_info("%s: Invalid print control object\n", __func__);
|
||||
pr_err("%s: Invalid print control object\n", __func__);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/* Check if category passed is valid */
|
||||
if (category < 0 || category >= MAX_SUPPORTED_CATEGORY) {
|
||||
pr_info("%s: Invalid category: %d\n", __func__, category);
|
||||
pr_err("%s: Invalid category: %d\n", __func__, category);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
/* Check if verbose mask is valid */
|
||||
if (verbose < 0 || verbose >= QDF_TRACE_LEVEL_MAX) {
|
||||
pr_info("%s: Invalid verbose level %d\n", __func__, verbose);
|
||||
pr_err("%s: Invalid verbose level %d\n", __func__, verbose);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
|
|
@ -3389,7 +3389,7 @@ QDF_STATUS qdf_print_set_category_verbose(unsigned int idx,
|
|||
QDF_TRACE_LEVEL_TO_MODULE_BITMASK(verbose);
|
||||
}
|
||||
|
||||
pr_info("%s: Print control object %d, Category %d, Verbose level %d\n",
|
||||
pr_debug("%s: Print control object %d, Category %d, Verbose level %d\n",
|
||||
__func__,
|
||||
idx,
|
||||
category,
|
||||
|
|
|
|||
Loading…
Reference in a new issue