qcacld-3.0: Replace obsolete WMA_LOGD() with wma_debug()

Replace obsolete WMA_LOGD() macro with wma_debug().

Change-Id: I41534dd1cc0321d0e5a77a8ba1f4fbe07ad7e6f3
CRs-Fixed: 2712788
This commit is contained in:
Srinivas Girigowda 2020-06-17 11:03:22 -07:00 committed by nshrivas
parent ba519cafa2
commit 7678422000
7 changed files with 16 additions and 18 deletions

View File

@ -426,7 +426,7 @@ static void cds_cdp_cfg_attach(struct wlan_objmgr_psoc *psoc)
gp_cds_context->cfg_ctx = cdp_cfg_attach(soc, gp_cds_context->qdf_ctx, gp_cds_context->cfg_ctx = cdp_cfg_attach(soc, gp_cds_context->qdf_ctx,
(void *)(&cdp_cfg)); (void *)(&cdp_cfg));
if (!gp_cds_context->cfg_ctx) { if (!gp_cds_context->cfg_ctx) {
WMA_LOGD("%s: failed to init cfg handle", __func__); cds_debug("failed to init cfg handle");
return; return;
} }

View File

@ -74,8 +74,6 @@
#define WMA_INVALID_VDEV_ID 0xFF #define WMA_INVALID_VDEV_ID 0xFF
/* Deprecated logging macros, to be removed. Please do not use in new code */ /* Deprecated logging macros, to be removed. Please do not use in new code */
#define WMA_LOGD(params ...) \
QDF_TRACE_DEBUG_NO_FL(QDF_MODULE_ID_WMA, params)
#define WMA_LOGI(params ...) \ #define WMA_LOGI(params ...) \
QDF_TRACE_INFO_NO_FL(QDF_MODULE_ID_WMA, params) QDF_TRACE_INFO_NO_FL(QDF_MODULE_ID_WMA, params)
#define WMA_LOGW(params ...) \ #define WMA_LOGW(params ...) \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2019 The Linux Foundation. All rights reserved. * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@ -74,7 +74,7 @@ static inline void wma_send_twt_enable_cmd(uint32_t pdev_id,
uint32_t congestion_timeout, uint32_t congestion_timeout,
bool bcast_val) bool bcast_val)
{ {
WMA_LOGD(FL("TWT not supported as WLAN_SUPPORT_TWT is disabled")); wma_debug("TWT not supported as WLAN_SUPPORT_TWT is disabled");
} }
static inline void wma_send_twt_disable_cmd(uint32_t pdev_id) static inline void wma_send_twt_disable_cmd(uint32_t pdev_id)
@ -89,7 +89,7 @@ static inline void wma_set_twt_peer_caps(tpAddStaParams params,
static inline QDF_STATUS wma_twt_process_add_dialog( static inline QDF_STATUS wma_twt_process_add_dialog(
struct wmi_twt_add_dialog_param *params) struct wmi_twt_add_dialog_param *params)
{ {
WMA_LOGD(FL("TWT not supported as WLAN_SUPPORT_TWT is disabled")); wma_debug("TWT not supported as WLAN_SUPPORT_TWT is disabled");
return QDF_STATUS_E_INVAL; return QDF_STATUS_E_INVAL;
} }
@ -97,7 +97,7 @@ static inline QDF_STATUS wma_twt_process_add_dialog(
static inline QDF_STATUS wma_twt_process_del_dialog( static inline QDF_STATUS wma_twt_process_del_dialog(
struct wmi_twt_del_dialog_param *params) struct wmi_twt_del_dialog_param *params)
{ {
WMA_LOGD(FL("TWT not supported as WLAN_SUPPORT_TWT is disabled")); wma_debug("TWT not supported as WLAN_SUPPORT_TWT is disabled");
return QDF_STATUS_E_INVAL; return QDF_STATUS_E_INVAL;
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2013-2019 The Linux Foundation. All rights reserved. * Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@ -96,7 +96,7 @@ QDF_STATUS u_mac_post_ctrl_msg(void *pSirGlobal, tSirMbMsg *pMb)
break; break;
default: default:
WMA_LOGD("Unknown message type = 0x%X\n", msg.type); wma_debug("Unknown message type = 0x%X", msg.type);
qdf_mem_free(msg.bodyptr); qdf_mem_free(msg.bodyptr);
return QDF_STATUS_E_FAILURE; return QDF_STATUS_E_FAILURE;
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2019 The Linux Foundation. All rights reserved. * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@ -73,7 +73,7 @@ static int wma_echo_event_handler(void *handle, uint8_t *buf, uint32_t len)
}; };
QDF_STATUS qdf_status; QDF_STATUS qdf_status;
WMA_LOGD("Received Echo reply from firmware!"); wma_debug("Received Echo reply from firmware!");
qdf_status = scheduler_post_message(QDF_MODULE_ID_WMA, qdf_status = scheduler_post_message(QDF_MODULE_ID_WMA,
QDF_MODULE_ID_SME, QDF_MODULE_ID_SME,

View File

@ -95,13 +95,13 @@ void wma_add_sta_ndi_mode(tp_wma_handle wma, tpAddStaParams add_sta)
goto send_rsp; goto send_rsp;
} }
WMA_LOGD(FL("Moving peer %pM to state %d"), add_sta->staMac, state); wma_debug("Moving peer %pM to state %d", add_sta->staMac, state);
cdp_peer_state_update(soc, add_sta->staMac, state); cdp_peer_state_update(soc, add_sta->staMac, state);
add_sta->nss = iface->nss; add_sta->nss = iface->nss;
add_sta->status = QDF_STATUS_SUCCESS; add_sta->status = QDF_STATUS_SUCCESS;
send_rsp: send_rsp:
WMA_LOGD(FL("Sending add sta rsp to umac (mac:%pM, status:%d)"), wma_debug("Sending add sta rsp to umac (mac:%pM, status:%d)",
add_sta->staMac, add_sta->status); add_sta->staMac, add_sta->status);
wma_send_msg_high_priority(wma, WMA_ADD_STA_RSP, (void *)add_sta, 0); wma_send_msg_high_priority(wma, WMA_ADD_STA_RSP, (void *)add_sta, 0);
} }
@ -123,11 +123,11 @@ void wma_delete_sta_req_ndi_mode(tp_wma_handle wma,
del_sta->status = QDF_STATUS_SUCCESS; del_sta->status = QDF_STATUS_SUCCESS;
if (del_sta->respReqd) { if (del_sta->respReqd) {
WMA_LOGD(FL("Sending del rsp to umac (status: %d)"), wma_debug("Sending del rsp to umac (status: %d)",
del_sta->status); del_sta->status);
wma_send_msg_high_priority(wma, WMA_DELETE_STA_RSP, del_sta, 0); wma_send_msg_high_priority(wma, WMA_DELETE_STA_RSP, del_sta, 0);
} else { } else {
WMA_LOGD(FL("NDI Del Sta resp not needed")); wma_debug("NDI Del Sta resp not needed");
qdf_mem_free(del_sta); qdf_mem_free(del_sta);
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2019 The Linux Foundation. All rights reserved. * Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@ -74,7 +74,7 @@ int wma_twt_en_complete_event_handler(void *handle,
wmi_handle, wmi_handle,
event, event,
&param); &param);
WMA_LOGD("TWT: Received TWT enable comp event, status:%d", status); wma_debug("TWT: Received TWT enable comp event, status:%d", status);
if (mac->sme.twt_enable_cb) if (mac->sme.twt_enable_cb)
mac->sme.twt_enable_cb(mac->hdd_handle, &param); mac->sme.twt_enable_cb(mac->hdd_handle, &param);
@ -110,7 +110,7 @@ int wma_twt_disable_comp_event_handler(void *handle, uint8_t *event,
return -EINVAL; return -EINVAL;
} }
WMA_LOGD("TWT: Rcvd TWT disable comp event"); wma_debug("TWT: Rcvd TWT disable comp event");
if (mac->sme.twt_disable_cb) if (mac->sme.twt_disable_cb)
mac->sme.twt_disable_cb(mac->hdd_handle); mac->sme.twt_disable_cb(mac->hdd_handle);