summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjay Devnani <sdevnani@qca.qualcomm.com>2014-03-05 13:06:18 -0800
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-03-06 18:59:48 -0800
commit3ef9907d16926935856fe072b56198eb52c04cd2 (patch)
treefe772aae97ee8d80162378cb24d92a3b6df7463f
parentde4fda316f3116cd73a3b24dd99ce8266b6673bd (diff)
wlan: fix format specifier in logs
This is to remove the compiler warnings on a 64 bit machine. use a generic specifier like %zu instead of %d to print size_t Change-Id: I9fceb32ea1a826063012d32213219776fffe1a62 CRs-fixed: 626809
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 74fe4372953f..dbd6dbd42e17 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -8838,7 +8838,7 @@ static int wlan_hdd_cfg80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *d
#ifdef WLAN_FEATURE_TDLS_DEBUG
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
- "%s: " MAC_ADDRESS_STR " action %d, dialog_token %d status %d, len = %d",
+ "%s: " MAC_ADDRESS_STR " action %d, dialog_token %d status %d, len = %zu",
"tdls_mgmt", MAC_ADDR_ARRAY(peer),
action_code, dialog_token, status_code, len);
#endif
@@ -8856,7 +8856,7 @@ static int wlan_hdd_cfg80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *d
else
{
VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
- "%s: " MAC_ADDRESS_STR " peer doesn't exist or not connected %d dialog_token %d status %d, len = %d",
+ "%s: " MAC_ADDRESS_STR " peer doesn't exist or not connected %d dialog_token %d status %d, len = %zu",
__func__, MAC_ADDR_ARRAY(peer), (NULL == pTdlsPeer) ? -1 : pTdlsPeer->link_status,
dialog_token, status_code, len);
return -EPERM;
@@ -9648,7 +9648,7 @@ void wlan_hdd_testmode_rx_event(void *buf, size_t buf_len)
if (!buf || !buf_len) {
VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_ERROR,
- "%s: buf or buf_len invalid, buf = %p buf_len = %d",
+ "%s: buf or buf_len invalid, buf = %p buf_len = %zu",
__func__, buf, buf_len);
return;
}