From 92c04b74f8037c5b024784a0a468101aefded103 Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Thu, 1 Sep 2016 23:43:40 -0700 Subject: 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 --- core/sap/dfs/src/dfs_process_phyerr.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/sap/dfs/src/dfs_process_phyerr.c b/core/sap/dfs/src/dfs_process_phyerr.c index 9189d58f8372..5290a70c0db9 100644 --- a/core/sap/dfs/src/dfs_process_phyerr.c +++ b/core/sap/dfs/src/dfs_process_phyerr.c @@ -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 -- cgit v1.2.3