From 6598eea7ff704607f0bb649ddc46a77280c26de8 Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Thu, 6 Jul 2017 19:26:19 -0700 Subject: [PATCH] qcacld-3.0: Move logs to appropriate log levels Move logs to appropriate log levels. Change-Id: I230318a934762d5fcda33f2446a1b176c11fc263 CRs-Fixed: 2083965 --- core/hdd/src/wlan_hdd_assoc.c | 4 ++-- core/hdd/src/wlan_hdd_cfg.c | 2 +- core/hdd/src/wlan_hdd_cfg80211.c | 9 ++++----- core/hdd/src/wlan_hdd_hostapd.c | 8 ++++---- core/hdd/src/wlan_hdd_main.c | 4 ++-- core/hdd/src/wlan_hdd_ocb.c | 2 +- core/hdd/src/wlan_hdd_power.c | 2 +- core/hdd/src/wlan_hdd_softap_tx_rx.c | 8 ++++---- core/hdd/src/wlan_hdd_stats.c | 2 +- core/hdd/src/wlan_hdd_tdls.c | 6 +++--- core/hdd/src/wlan_hdd_tx_rx.c | 6 +++--- core/hdd/src/wlan_hdd_wext.c | 2 +- core/mac/src/pe/lim/lim_api.c | 2 +- core/sme/src/common/sme_power_save.c | 4 ++-- core/sme/src/csr/csr_api_roam.c | 6 +++--- core/wma/src/wma_scan_roam.c | 4 ++-- 16 files changed, 35 insertions(+), 36 deletions(-) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index c26854d397b1..98f9d78b216c 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -1580,7 +1580,7 @@ static QDF_STATUS hdd_dis_connect_handler(hdd_adapter_t *pAdapter, return QDF_STATUS_E_FAILURE; } /* notify apps that we can't pass traffic anymore */ - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); @@ -4975,7 +4975,7 @@ hdd_sme_roam_callback(void *pContext, tCsrRoamInfo *pRoamInfo, uint32_t roamId, break; case eCSR_ROAM_SHOULD_ROAM: /* notify apps that we can't pass traffic anymore */ - hdd_debug("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_STOP_ALL_NETIF_QUEUE, WLAN_CONTROL_PATH); diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c index d5a3e3c951a1..1257bb19efa1 100644 --- a/core/hdd/src/wlan_hdd_cfg.c +++ b/core/hdd/src/wlan_hdd_cfg.c @@ -6114,7 +6114,7 @@ void hdd_cfg_print(hdd_context_t *pHddCtx) hdd_debug("Name = [%s] value = [%u]", CFG_FORCE_1X1_NAME, pHddCtx->config->is_force_1x1); - hdd_info("Name = [%s] Value = %u", + hdd_debug("Name = [%s] Value = %u", CFG_ENABLE_CONNECTED_SCAN_NAME, pHddCtx->config->enable_connected_scan); hdd_debug("Name = [%s] value = [%u]", diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 5ebba5c76ecd..3cb46df4f1c1 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -10610,7 +10610,7 @@ void hdd_bt_activity_cb(void *context, uint32_t bt_activity) else return; - hdd_info("a2dp_active:%d vo_active:%d", hdd_ctx->bt_a2dp_active, + hdd_debug("a2dp_active: %d vo_active: %d", hdd_ctx->bt_a2dp_active, hdd_ctx->bt_vo_active); } @@ -15705,7 +15705,7 @@ static int wlan_hdd_disconnect(hdd_adapter_t *pAdapter, u16 reason) } if (pAdapter->roam_ho_fail) { INIT_COMPLETION(pAdapter->disconnect_comp_var); - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); @@ -15717,9 +15717,8 @@ static int wlan_hdd_disconnect(hdd_adapter_t *pAdapter, u16 reason) } prev_conn_state = pHddStaCtx->conn_info.connState; - - /* stop tx queues */ - hdd_debug("Disabling queues"); + /*stop tx queues */ + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); hdd_debug("Set HDD connState to eConnectionState_Disconnecting"); diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 4e771bc6b274..ee90068f32b9 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -268,7 +268,7 @@ static int __hdd_hostapd_open(struct net_device *dev) set_bit(DEVICE_IFACE_OPENED, &pAdapter->event_flags); /* Enable all Tx queues */ - hdd_notice("Enabling queues"); + hdd_info("Enabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_START_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); @@ -314,7 +314,7 @@ static int __hdd_hostapd_stop(struct net_device *dev) clear_bit(DEVICE_IFACE_OPENED, &adapter->event_flags); /* Stop all tx queues */ - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(adapter, WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); @@ -2166,7 +2166,7 @@ stopbss: /* Stop the pkts from n/w stack as we are going to free all of * the TX WMM queues for all STAID's */ - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(pHostapdAdapter, WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); @@ -8217,7 +8217,7 @@ static int __wlan_hdd_cfg80211_stop_ap(struct wiphy *wiphy, qdf_mem_zero(&pAdapter->sessionCtx.ap.sapConfig.acs_cfg, sizeof(struct sap_acs_cfg)); /* Stop all tx queues */ - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index d2839a342a74..90d70ad7df23 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2417,7 +2417,7 @@ static int __hdd_stop(struct net_device *dev) * Disable TX on the interface, after this hard_start_xmit() will not * be called on that interface */ - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(adapter, WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); @@ -4097,7 +4097,7 @@ QDF_STATUS hdd_stop_adapter(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter, ENTER(); scan_info = &adapter->scan_info; - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(adapter, WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); diff --git a/core/hdd/src/wlan_hdd_ocb.c b/core/hdd/src/wlan_hdd_ocb.c index eb58b8e9ee68..e467a2757d2d 100644 --- a/core/hdd/src/wlan_hdd_ocb.c +++ b/core/hdd/src/wlan_hdd_ocb.c @@ -409,7 +409,7 @@ static int hdd_ocb_set_config_req(hdd_adapter_t *adapter, } cookie = hdd_request_cookie(hdd_request); - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(adapter, WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 90e73e0147d5..b01e9d139369 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -1093,7 +1093,7 @@ hdd_suspend_wlan(void) } /* stop all TX queues before suspend */ - hdd_debug("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_STOP_ALL_NETIF_QUEUE, WLAN_CONTROL_PATH); diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c index 191a22cf6df3..35ef1f623128 100644 --- a/core/hdd/src/wlan_hdd_softap_tx_rx.c +++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c @@ -115,7 +115,7 @@ void hdd_softap_tx_resume_timer_expired_handler(void *adapter_context) return; } - hdd_notice("Enabling queues"); + hdd_info("Enabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_WAKE_ALL_NETIF_QUEUE, WLAN_CONTROL_PATH); } @@ -136,7 +136,7 @@ hdd_softap_tx_resume_false(hdd_adapter_t *pAdapter, bool tx_resume) if (true == tx_resume) return; - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_STOP_ALL_NETIF_QUEUE, WLAN_DATA_FLOW_CONTROL); @@ -188,7 +188,7 @@ void hdd_softap_tx_resume_cb(void *adapter_context, bool tx_resume) qdf_mc_timer_stop(&pAdapter->tx_flow_control_timer); } - hdd_notice("Enabling queues"); + hdd_info("Enabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_WAKE_ALL_NETIF_QUEUE, WLAN_DATA_FLOW_CONTROL); @@ -951,7 +951,7 @@ QDF_STATUS hdd_softap_register_sta(hdd_adapter_t *pAdapter, } /* Enable Tx queue */ - hdd_notice("Enabling queues"); + hdd_info("Enabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_START_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index c08c0af01e9d..80943c78ff5b 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -3771,7 +3771,7 @@ static int __wlan_hdd_cfg80211_dump_survey(struct wiphy *wiphy, ENTER_DEV(dev); - hdd_info("dump survey index:%d", idx); + hdd_debug("dump survey index: %d", idx); if (idx > QDF_MAX_NUM_CHAN - 1) return -EINVAL; diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c index fa83dfb7c3ef..a8fc027ea000 100644 --- a/core/hdd/src/wlan_hdd_tdls.c +++ b/core/hdd/src/wlan_hdd_tdls.c @@ -1636,7 +1636,7 @@ static void wlan_tdd_tdls_reset_tx_rx(tdlsCtx_t *pHddTdlsCtx) */ static void wlan_hdd_tdls_implicit_disable(tdlsCtx_t *pHddTdlsCtx) { - hdd_info("Disable Implicit TDLS"); + hdd_debug("Disable Implicit TDLS"); wlan_hdd_tdls_timers_stop(pHddTdlsCtx); } @@ -1648,7 +1648,7 @@ static void wlan_hdd_tdls_implicit_disable(tdlsCtx_t *pHddTdlsCtx) */ static void wlan_hdd_tdls_implicit_enable(tdlsCtx_t *pHddTdlsCtx) { - hdd_info("Enable Implicit TDLS"); + hdd_debug("Enable Implicit TDLS"); wlan_hdd_tdls_peer_reset_discovery_processed(pHddTdlsCtx); pHddTdlsCtx->discovery_sent_cnt = 0; wlan_tdd_tdls_reset_tx_rx(pHddTdlsCtx); @@ -6198,7 +6198,7 @@ static void wlan_hdd_tdls_ct_handler(void *user_data) return; /* If any concurrency is detected */ if (!hdd_ctx->enable_tdls_connection_tracker) { - hdd_info("Connection tracker is disabled"); + hdd_debug("Connection tracker is disabled"); return; } diff --git a/core/hdd/src/wlan_hdd_tx_rx.c b/core/hdd/src/wlan_hdd_tx_rx.c index f6e9c5420faf..5b912d4fb14d 100644 --- a/core/hdd/src/wlan_hdd_tx_rx.c +++ b/core/hdd/src/wlan_hdd_tx_rx.c @@ -109,7 +109,7 @@ void hdd_tx_resume_timer_expired_handler(void *adapter_context) return; } - hdd_notice("Enabling queues"); + hdd_info("Enabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_WAKE_ALL_NETIF_QUEUE, WLAN_CONTROL_PATH); } @@ -130,7 +130,7 @@ hdd_tx_resume_false(hdd_adapter_t *pAdapter, bool tx_resume) return; /* Pause TX */ - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_STOP_ALL_NETIF_QUEUE, WLAN_DATA_FLOW_CONTROL); @@ -198,7 +198,7 @@ void hdd_tx_resume_cb(void *adapter_context, bool tx_resume) tx_flow_control_timer)) { qdf_mc_timer_stop(&pAdapter->tx_flow_control_timer); } - hdd_notice("Enabling queues"); + hdd_info("Enabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_WAKE_ALL_NETIF_QUEUE, WLAN_DATA_FLOW_CONTROL); diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index 339a8f347ff1..1cd1cc9c6820 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -7272,7 +7272,7 @@ static int __iw_set_mlme(struct net_device *dev, (WLAN_HDD_GET_WEXT_STATE_PTR(pAdapter))->authKeyMgmt = 0; - hdd_notice("Disabling queues"); + hdd_info("Disabling queues"); wlan_hdd_netif_queue_control(pAdapter, WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH); diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index 19f2d04ab126..98b02a3c137b 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/core/mac/src/pe/lim/lim_api.c @@ -2005,7 +2005,7 @@ lim_roam_fill_bss_descr(tpAniSirGlobal pMac, (uint8_t *)parsed_frm_ptr->mdie, SIR_MDIE_SIZE); } - pe_debug("LFR3: %s:BssDescr Info:", __func__); + pe_debug("LFR3: BssDescr Info:"); QDF_TRACE_HEX_DUMP(QDF_MODULE_ID_PE, QDF_TRACE_LEVEL_DEBUG, bss_desc_ptr->bssId, sizeof(tSirMacAddr)); pe_debug("chan: %d rssi: %d", bss_desc_ptr->channelId, diff --git a/core/sme/src/common/sme_power_save.c b/core/sme/src/common/sme_power_save.c index 6185d1d9db52..db05030a2223 100644 --- a/core/sme/src/common/sme_power_save.c +++ b/core/sme/src/common/sme_power_save.c @@ -884,7 +884,7 @@ QDF_STATUS sme_ps_enable_auto_ps_timer(tHalHandle hal_ctx, return QDF_STATUS_SUCCESS; } - sme_err("Start auto_ps_timer for %d ms", timeout); + sme_info("Start auto_ps_timer for %d ms", timeout); qdf_status = qdf_mc_timer_start(&ps_param->auto_ps_enable_timer, timeout); @@ -912,7 +912,7 @@ QDF_STATUS sme_ps_disable_auto_ps_timer(tHalHandle hal_ctx, if (QDF_TIMER_STATE_RUNNING == qdf_mc_timer_get_current_state( &ps_param->auto_ps_enable_timer)) { - sme_err("Stop auto_ps_enable_timer Timer for session ID: %d", + sme_info("Stop auto_ps_enable_timer Timer for session ID: %d", session_id); qdf_mc_timer_stop(&ps_param->auto_ps_enable_timer); } diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 746f4176c618..f198092b2b30 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -17888,7 +17888,7 @@ csr_roam_offload_scan(tpAniSirGlobal mac_ctx, uint8_t session_id, } if (!csr_is_RSO_cmd_allowed(mac_ctx, command, session_id) && reason != REASON_ROAM_SET_BLACKLIST_BSSID) { - QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR, + QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_DEBUG, ("RSO out-of-sync command %d lastSentCmd %d"), command, roam_info->last_sent_cmd); return QDF_STATUS_E_FAILURE; @@ -20008,7 +20008,7 @@ static QDF_STATUS csr_process_roam_sync_callback(tpAniSirGlobal mac_ctx, /* first update connection info from wma interface */ policy_mgr_update_connection_info(mac_ctx->psoc, session_id); /* then update remaining parameters from roam sync ctx */ - sme_err("Update DBS hw mode"); + sme_debug("Update DBS hw mode"); policy_mgr_hw_mode_transition_cb( roam_synch_data->hw_mode_trans_ind.old_hw_mode_index, roam_synch_data->hw_mode_trans_ind.new_hw_mode_index, @@ -20023,7 +20023,7 @@ static QDF_STATUS csr_process_roam_sync_callback(tpAniSirGlobal mac_ctx, REASON_CONNECT); return status; default: - sme_err("LFR3: callback reason %d", reason); + sme_debug("LFR3: callback reason %d", reason); return QDF_STATUS_E_FAILURE; } session->roam_synch_in_progress = true; diff --git a/core/wma/src/wma_scan_roam.c b/core/wma/src/wma_scan_roam.c index 587437786c53..057e78714f2e 100644 --- a/core/wma/src/wma_scan_roam.c +++ b/core/wma/src/wma_scan_roam.c @@ -2366,7 +2366,7 @@ int wma_roam_synch_event_handler(void *handle, uint8_t *event, __func__); goto cleanup_label; } - WMA_LOGE("LFR3: Received WMA_ROAM_OFFLOAD_SYNCH_IND"); + WMA_LOGI("LFR3: Received WMA_ROAM_OFFLOAD_SYNCH_IND"); cds_host_diag_log_work(&wma->roam_ho_wl, WMA_ROAM_HO_WAKE_LOCK_DURATION, @@ -2807,7 +2807,7 @@ void wma_process_roam_synch_complete(WMA_HANDLE handle, uint8_t vdev_id) vdev_id, QDF_TRACE_DEFAULT_PDEV_ID, QDF_PROTO_TYPE_EVENT, QDF_ROAM_COMPLETE)); - WMA_LOGE("LFR3: Posting WMA_ROAM_OFFLOAD_SYNCH_CNF"); + WMA_LOGI("LFR3: Posting WMA_ROAM_OFFLOAD_SYNCH_CNF"); } #endif /* WLAN_FEATURE_ROAM_OFFLOAD */