From a1a3b6cbef8e9d78ffe0271a2b2febbfa58c138b Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Sun, 8 Feb 2015 18:18:02 -0800 Subject: qcacld-2.0: Reduce log level from ERROR to INFO This is prima to qcacld-2.0 propagation. There is a possibility of wlan_hdd_tdls_get_peer() to return error in case device_mode won't fall under STA/P2P-CLI, causing debug logs to print continuously in wlan_hdd_tdls_get_peer() and wlan_hdd_tdls_increment_pkt_count(). Hence moving log level to INFO. Change-Id: Ia7bc3423e367646b02797389e3b765a1b1afc732 CRs-Fixed: 792863 --- CORE/HDD/src/wlan_hdd_tdls.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/CORE/HDD/src/wlan_hdd_tdls.c b/CORE/HDD/src/wlan_hdd_tdls.c index b25019a0966d..3f85a8b1a99f 100644 --- a/CORE/HDD/src/wlan_hdd_tdls.c +++ b/CORE/HDD/src/wlan_hdd_tdls.c @@ -971,10 +971,8 @@ hddTdlsPeer_t *wlan_hdd_tdls_get_peer(hdd_adapter_t *pAdapter, u8 *mac) pHddTdlsCtx = WLAN_HDD_GET_TDLS_CTX_PTR(pAdapter); - if (NULL == pHddTdlsCtx) - { - VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, - FL("pHddTdlsCtx is NULL")); + if (NULL == pHddTdlsCtx) { + hddLog(LOG1, FL("pHddTdlsCtx is NULL")); vos_mem_free(peer); mutex_unlock(&pHddCtx->tdls_lock); return NULL; @@ -1373,10 +1371,8 @@ int wlan_hdd_tdls_increment_pkt_count(hdd_adapter_t *pAdapter, u8 *mac, u8 tx) return -1; curr_peer = wlan_hdd_tdls_get_peer(pAdapter, mac); - if (curr_peer == NULL) - { - VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR, - FL("curr_peer is NULL")); + if (curr_peer == NULL) { + hddLog(LOG1, FL("curr_peer is NULL")); return -1; } -- cgit v1.2.3