From 91fe3637f97b59034161c431f857b623f286d35e Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Fri, 17 Mar 2017 14:46:41 -0700 Subject: [PATCH] qcacld-3.0: Replace sms_log() with sme_* log levels in p2p_api.c Replace sms_log() with sme_* appropriate log levels in p2p_api.c. Change-Id: I6d9981e55cfe13b303a46448c21d7d469f3330b7 CRs-Fixed: 2020798 --- core/sme/src/p2p/p2p_api.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/core/sme/src/p2p/p2p_api.c b/core/sme/src/p2p/p2p_api.c index 5b12f721f2d8..e22cbf6d5274 100644 --- a/core/sme/src/p2p/p2p_api.c +++ b/core/sme/src/p2p/p2p_api.c @@ -49,14 +49,12 @@ QDF_STATUS p2p_process_remain_on_channel_cmd(tpAniSirGlobal pMac, CSR_GET_SESSION(pMac, p2pRemainonChn->sessionId); if (!pSession) { - sms_log(pMac, LOGE, FL(" session %d not found "), - p2pRemainonChn->sessionId); + sme_err("session %d not found", p2pRemainonChn->sessionId); return status; } if (!pSession->sessionActive) { - sms_log(pMac, LOGE, - FL(" session %d is invalid or listen is disabled "), + sme_err("session %d is invalid or listen is disabled", p2pRemainonChn->sessionId); return status; } @@ -64,8 +62,7 @@ QDF_STATUS p2p_process_remain_on_channel_cmd(tpAniSirGlobal pMac, if (len > 0xFFFF) { /*In coming len for Msg is more then 16bit value */ - sms_log(pMac, LOGE, FL(" Message length is very large, %d"), - len); + sme_err("Message length is very large, %d", len); return status; } @@ -110,7 +107,7 @@ QDF_STATUS sme_remain_on_chn_rsp(tpAniSirGlobal pMac, uint8_t *pMsg) csr_get_active_scan_entry(pMac, rsp->scan_id, &pEntry); if (!pEntry) { - sms_log(pMac, LOGE, FL("No cmd found in active list.")); + sme_err("No cmd found in active list"); return status; } @@ -149,11 +146,10 @@ QDF_STATUS sme_remain_on_chn_ready(tHalHandle hHal, uint8_t *pMsg) csr_get_active_scan_entry(pMac, rsp->scan_id, &pEntry); if (!pEntry) { - sms_log(pMac, LOGE, FL("No cmd found in active list.")); + sme_err("No cmd found in active list"); return status; } - sms_log(pMac, LOG1, - FL("Ready Ind %d %d"), rsp->session_id, rsp->scan_id); + sme_debug("Ready Ind %d %d", rsp->session_id, rsp->scan_id); pCommand = GET_BASE_ADDR(pEntry, tSmeCmd, Link); if (eSmeCommandRemainOnChannel == pCommand->command) { RoamInfo.roc_scan_id = rsp->scan_id;