qcacld-3.0: SAP DFS: Logging enhancement in dfs_process_phyerr file

Reduce log level and remove new lines.

Change-Id: I87588a45ad14cff5be1afab63c9cdf1329cfa063
CRs-Fixed: 1062742
This commit is contained in:
Arif Hussain 2016-09-01 23:43:40 -07:00 • committed by qcabuildsw
commit 92c04b74f8

View file

@ -463,7 +463,7 @@ static void dump_phyerr_contents(const char *d, int len)
* Print the final line if we didn't print it above.
*/
if (n != 0)
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO, "%s: %s\n",
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO, "%s: %s",
__func__, buf);
#endif /* def CONFIG_ENABLE_DUMP_PHYERR_CONTENTS */
}
@ -481,7 +481,7 @@ dfs_process_phyerr(struct ieee80211com *ic, void *buf, uint16_t datalen,
if (dfs == NULL) {
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
"%s: sc_dfs is NULL\n", __func__);
"%s: sc_dfs is NULL", __func__);
return;
}
@ -509,8 +509,8 @@ dfs_process_phyerr(struct ieee80211com *ic, void *buf, uint16_t datalen,
dump_phyerr_contents(buf, datalen);
if (chan == NULL) {
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_ERROR,
"%s: chan is NULL\n", __func__);
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
"%s: chan is NULL", __func__);
return;
}
@ -561,7 +561,7 @@ dfs_process_phyerr(struct ieee80211com *ic, void *buf, uint16_t datalen,
enable_log) == 0) {
dfs->dfs_phyerr_reject_count++;
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
"%s:Rejected phyerr count after parsing=%d\n",
"%s:Rejected phyerr count after parsing=%d",
__func__, dfs->dfs_phyerr_reject_count);
return;
} else {
@ -592,7 +592,7 @@ dfs_process_phyerr(struct ieee80211com *ic, void *buf, uint16_t datalen,
}
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
"\n %s: Frequency at which the phyerror was injected = %d",
"%s: Frequency at which the phyerror was injected = %d",
__func__, e.freq);
/*
* If the hardware supports radar reporting on the extension channel