qcacmn: Reduce the log spam in kmsg

Move the logs to appropriate log levels to avoid excessive
logging in kmsg. Also log the error reason and line number.

Change-Id: I08ed38861ff0b3d50861b957de34b1c62bc45afb
CRs-Fixed: 2024378
This commit is contained in:
Poddar, Siddarth
2017-03-24 15:57:43 +05:30
committed by qcabuildsw
parent c606d91600
commit e0a0247ead

View File

@@ -237,14 +237,16 @@ qdf_sysctl_decl(ath_sysctl_pktlog_enable, ctl, write, filp, buffer, lenp, ppos)
(struct hif_opaque_softc *)scn, enable, (struct hif_opaque_softc *)scn, enable,
cds_is_packet_log_enabled(), 0, 1); cds_is_packet_log_enabled(), 0, 1);
else else
printk(PKTLOG_TAG "%s:proc_dointvec failed\n", QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_DEBUG,
__func__); "Line:%d %s:proc_dointvec failed reason %d",
__LINE__, __func__, ret);
} else { } else {
ret = QDF_SYSCTL_PROC_DOINTVEC(ctl, write, filp, buffer, ret = QDF_SYSCTL_PROC_DOINTVEC(ctl, write, filp, buffer,
lenp, ppos); lenp, ppos);
if (ret) if (ret)
printk(PKTLOG_TAG "%s:proc_dointvec failed\n", QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_DEBUG,
__func__); "Line:%d %s:proc_dointvec failed reason %d",
__LINE__, __func__, ret);
} }
ctl->data = NULL; ctl->data = NULL;