From 3887f9b2ccc35f5ce902e5382349bc985de224cf Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Wed, 10 Jan 2018 11:24:01 -0800 Subject: [PATCH] qcacld-3.0: Optimize console logging during driver load Change some of info/warn log levels to debug log levels to avoid excessive console logging during driver load. Change-Id: I042a8f8f735fb2eb7c135c120cbc6644c46bcc31 CRs-Fixed: 2169378 --- core/dp/htt/htt.c | 6 +++--- core/hdd/src/wlan_hdd_ipa.c | 10 +++++----- core/hdd/src/wlan_hdd_main.c | 2 +- core/sme/src/common/sme_api.c | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/dp/htt/htt.c b/core/dp/htt/htt.c index 0b5182fd39a1..16c99f3d661d 100644 --- a/core/dp/htt/htt.c +++ b/core/dp/htt/htt.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2014-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2011, 2014-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -840,7 +840,7 @@ int htt_ipa_uc_attach(struct htt_pdev_t *pdev) { int error; - QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO, "%s: enter", + QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG, "%s: enter", __func__); /* TX resource attach */ @@ -867,7 +867,7 @@ int htt_ipa_uc_attach(struct htt_pdev_t *pdev) return error; } - QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_INFO, "%s: exit", + QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_DEBUG, "%s: exit", __func__); return 0; /* success */ } diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index 4f63080fe095..305693caf742 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/core/hdd/src/wlan_hdd_ipa.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -3112,7 +3112,7 @@ QDF_STATUS hdd_ipa_uc_ol_init(struct hdd_context *hdd_ctx) if (!hdd_ipa_uc_is_enabled(hdd_ctx)) return QDF_STATUS_SUCCESS; - HDD_IPA_LOG(QDF_TRACE_LEVEL_INFO, "enter"); + HDD_IPA_LOG(QDF_TRACE_LEVEL_DEBUG, "enter"); /* Do only IPA Pipe specific configuration here. All one time * initialization wrt IPA UC shall in hdd_ipa_init and those need @@ -3166,7 +3166,7 @@ QDF_STATUS hdd_ipa_uc_ol_init(struct hdd_context *hdd_ctx) } fail_return: - HDD_IPA_LOG(QDF_TRACE_LEVEL_INFO, "exit: status=%d", status); + HDD_IPA_LOG(QDF_TRACE_LEVEL_DEBUG, "exit: status=%d", status); return status; } @@ -5877,7 +5877,7 @@ static QDF_STATUS __hdd_ipa_init(struct hdd_context *hdd_ctx) if (!hdd_ipa_is_enabled(hdd_ctx)) return QDF_STATUS_SUCCESS; - HDD_IPA_LOG(QDF_TRACE_LEVEL_INFO, "enter"); + HDD_IPA_LOG(QDF_TRACE_LEVEL_DEBUG, "enter"); pdev = cds_get_context(QDF_MODULE_ID_TXRX); if (!pdev) { @@ -5986,7 +5986,7 @@ fail_setup_rm: hdd_ctx->hdd_ipa = NULL; ghdd_ipa = NULL; fail_return: - HDD_IPA_LOG(QDF_TRACE_LEVEL_INFO, "exit: fail"); + HDD_IPA_LOG(QDF_TRACE_LEVEL_DEBUG, "exit: fail"); return QDF_STATUS_E_FAILURE; } diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 3abe089a6d64..ad5d15dd5a2f 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -10180,7 +10180,7 @@ void hdd_dp_trace_init(struct hdd_config *config) case 1: live_mode = config_params[0]; default: - hdd_info("live_mode %u thresh %u time_limit %u verbosity %u bitmap 0x%x", + hdd_debug("live_mode %u thresh %u time_limit %u verbosity %u bitmap 0x%x", live_mode, thresh, thresh_time_limit, verbosity, proto_bitmap); }; diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index fec3c044107c..999afbb08b6f 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -1977,7 +1977,7 @@ QDF_STATUS sme_process_msg(tHalHandle hHal, struct scheduler_msg *pMsg) return status; } if (!SME_IS_START(pMac)) { - sme_warn("message type %d in stop state ignored", pMsg->type); + sme_debug("message type %d in stop state ignored", pMsg->type); if (pMsg->bodyptr) qdf_mem_free(pMsg->bodyptr); goto release_lock;