summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Girigowda <sgirigow@codeaurora.org>2017-03-09 19:29:42 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-03-17 12:19:59 -0700
commit3490466b126a9503f3ee11d58332d0105df7d2ed (patch)
tree8245e3818be0d5681708050fb43940888b6946ed
parent007bb72c34fe37d6a724c6a5a719205bddfdd762 (diff)
qcacld-3.0: CDS: Reduce the log spam in kmsg
Move the logs to appropriate log levels to reduce the log spam in kmsg. Change-Id: Iaa3cc1925d0ddc59de910a2ad0d2090fec63c18a CRs-Fixed: 2014745
-rw-r--r--core/cds/src/cds_api.c7
-rw-r--r--core/cds/src/cds_concurrency.c8
-rw-r--r--core/cds/src/cds_mq.c4
-rw-r--r--core/cds/src/cds_reg_service.c6
-rw-r--r--core/cds/src/cds_regdomain.c2
-rw-r--r--core/cds/src/cds_sched.c8
6 files changed, 15 insertions, 20 deletions
diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c
index 27a886b30883..5f81234a0191 100644
--- a/core/cds/src/cds_api.c
+++ b/core/cds/src/cds_api.c
@@ -524,7 +524,7 @@ QDF_STATUS cds_pre_enable(v_CONTEXT_t cds_context)
QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
p_cds_contextType p_cds_context = (p_cds_contextType) cds_context;
void *scn;
- QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_INFO, "cds prestart");
+ QDF_TRACE(QDF_MODULE_ID_SYS, QDF_TRACE_LEVEL_DEBUG, "cds prestart");
if (gp_cds_context != p_cds_context) {
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
@@ -642,9 +642,6 @@ QDF_STATUS cds_enable(v_CONTEXT_t cds_context)
p_cds_contextType p_cds_context = (p_cds_contextType) cds_context;
tHalMacStartParameters halStartParams;
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
- "%s: Starting Libra SW", __func__);
-
/* We support only one instance for now ... */
if (gp_cds_context != p_cds_context) {
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
@@ -711,8 +708,6 @@ QDF_STATUS cds_enable(v_CONTEXT_t cds_context)
}
QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
- "TL correctly started");
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
"%s: CDS Start is successful!!", __func__);
return QDF_STATUS_SUCCESS;
diff --git a/core/cds/src/cds_concurrency.c b/core/cds/src/cds_concurrency.c
index 4da028c4805d..e3409d5f1ffd 100644
--- a/core/cds/src/cds_concurrency.c
+++ b/core/cds/src/cds_concurrency.c
@@ -3083,7 +3083,7 @@ static void cds_dump_current_concurrency(void)
case 1:
cds_dump_current_concurrency_one_connection(cc_mode,
sizeof(cc_mode));
- cds_err("%s Standalone", cc_mode);
+ cds_notice("%s Standalone", cc_mode);
break;
case 2:
count = cds_dump_current_concurrency_two_connection(
@@ -3098,7 +3098,7 @@ static void cds_dump_current_concurrency(void)
} else
strlcat(cc_mode, " DBS", sizeof(cc_mode));
qdf_mutex_release(&cds_ctx->qdf_conc_list_lock);
- cds_err("%s", cc_mode);
+ cds_notice("%s", cc_mode);
break;
case 3:
count = cds_dump_current_concurrency_three_connection(
@@ -3122,7 +3122,7 @@ static void cds_dump_current_concurrency(void)
qdf_mutex_release(&cds_ctx->qdf_conc_list_lock);
cds_dump_dbs_concurrency(cc_mode, sizeof(cc_mode));
}
- cds_err("%s", cc_mode);
+ cds_notice("%s", cc_mode);
break;
default:
cds_err("unexpected num_connections value %d",
@@ -4795,7 +4795,7 @@ void cds_update_with_safe_channel_list(uint8_t *pcl_channels, uint32_t *len,
sizeof(unsafe_channel_list));
if (unsafe_channel_count == 0)
- cds_notice("There are no unsafe channels");
+ cds_debug("There are no unsafe channels");
if (unsafe_channel_count) {
qdf_mem_copy(current_channel_list, pcl_channels,
diff --git a/core/cds/src/cds_mq.c b/core/cds/src/cds_mq.c
index 056979c9ab9c..a38bff0884dc 100644
--- a/core/cds/src/cds_mq.c
+++ b/core/cds/src/cds_mq.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -163,7 +163,7 @@ inline p_cds_msg_wrapper cds_mq_get(p_cds_mq_type pMq)
spin_lock_irqsave(&pMq->mqLock, flags);
if (list_empty(&pMq->mqList)) {
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_WARN,
+ QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_DEBUG,
"%s: CDS Message Queue is empty", __func__);
} else {
listptr = pMq->mqList.next;
diff --git a/core/cds/src/cds_reg_service.c b/core/cds/src/cds_reg_service.c
index 12e2a9a3a107..ac483b80e500 100644
--- a/core/cds/src/cds_reg_service.c
+++ b/core/cds/src/cds_reg_service.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -534,8 +534,8 @@ static void cds_set_5g_channel_params(uint16_t oper_ch,
(bonded_chan_ptr->start_ch +
bonded_chan_ptr->end_ch)/2;
}
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
- "ch %d ch_wd %d freq0 %d freq1 %d", oper_ch,
+ QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_DEBUG,
+ "ch: %d ch_wd: %d freq0: %d freq1: %d", oper_ch,
ch_params->ch_width, ch_params->center_freq_seg0,
ch_params->center_freq_seg1);
}
diff --git a/core/cds/src/cds_regdomain.c b/core/cds/src/cds_regdomain.c
index b109790df84b..77e95e234624 100644
--- a/core/cds/src/cds_regdomain.c
+++ b/core/cds/src/cds_regdomain.c
@@ -759,7 +759,7 @@ void cds_set_wma_dfs_region(uint8_t dfs_region)
return;
}
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
+ QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_DEBUG,
"dfs_region: %d", dfs_region);
wma_set_dfs_region(wma, dfs_region);
diff --git a/core/cds/src/cds_sched.c b/core/cds/src/cds_sched.c
index 0fdab613f6fd..215284b98532 100644
--- a/core/cds/src/cds_sched.c
+++ b/core/cds/src/cds_sched.c
@@ -1309,7 +1309,7 @@ void cds_sched_flush_mc_mqs(p_cds_sched_context pSchedContext)
/* Flush the SYS Mq */
while (NULL != (pMsgWrapper = cds_mq_get(&pSchedContext->sysMcMq))) {
QDF_TRACE(QDF_MODULE_ID_QDF,
- QDF_TRACE_LEVEL_INFO,
+ QDF_TRACE_LEVEL_DEBUG,
"%s: Freeing MC SYS message type %d ", __func__,
pMsgWrapper->pVosMsg->type);
cds_core_return_msg(pSchedContext->pVContext, pMsgWrapper);
@@ -1317,7 +1317,7 @@ void cds_sched_flush_mc_mqs(p_cds_sched_context pSchedContext)
/* Flush the WMA Mq */
while (NULL != (pMsgWrapper = cds_mq_get(&pSchedContext->wmaMcMq))) {
if (pMsgWrapper->pVosMsg != NULL) {
- QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_INFO,
+ QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_DEBUG,
"%s: Freeing MC WMA MSG message type %d",
__func__, pMsgWrapper->pVosMsg->type);
@@ -1329,7 +1329,7 @@ void cds_sched_flush_mc_mqs(p_cds_sched_context pSchedContext)
/* Flush the PE Mq */
while (NULL != (pMsgWrapper = cds_mq_get(&pSchedContext->peMcMq))) {
QDF_TRACE(QDF_MODULE_ID_QDF,
- QDF_TRACE_LEVEL_INFO,
+ QDF_TRACE_LEVEL_DEBUG,
"%s: Freeing MC PE MSG message type %d", __func__,
pMsgWrapper->pVosMsg->type);
pe_free_msg(cds_ctx->pMACContext,
@@ -1339,7 +1339,7 @@ void cds_sched_flush_mc_mqs(p_cds_sched_context pSchedContext)
/* Flush the SME Mq */
while (NULL != (pMsgWrapper = cds_mq_get(&pSchedContext->smeMcMq))) {
QDF_TRACE(QDF_MODULE_ID_QDF,
- QDF_TRACE_LEVEL_INFO,
+ QDF_TRACE_LEVEL_DEBUG,
"%s: Freeing MC SME MSG message type %d", __func__,
pMsgWrapper->pVosMsg->type);
sme_free_msg(cds_ctx->pMACContext, pMsgWrapper->pVosMsg);