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: Ia3662a20ac1dbab60921542e7aafce02ae50c65a
CRs-Fixed: 633657
(cherry picked from commit 84f9f5bbd0d797dcb8051aed0ff10e1607a1b71a)
(cherry picked from commit 04c2cc7c418fdc3237f608a05b4d74c1d802d63b)
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index b401969..fcff9ad 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -8805,7 +8805,7 @@
#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
@@ -8823,7 +8823,7 @@
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;