summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjay Devnani <sdevnani@qca.qualcomm.com>2014-03-05 13:29:35 -0800
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-03-06 18:59:49 -0800
commit398175e2b11c71d48c681b716ff8a38fc8d8ec2a (patch)
treee4f5c07940f817170c2386662b8658923571b6f8
parent89032252a2f5ecd741380493c86927c7fcc48f7e (diff)
wlan: fix format specifier in logs - DFS
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: Ibdf4039b034ac8f1cb30929dba5eb6aa897fe09b CRs-fixed: 626823
-rw-r--r--CORE/SERVICES/DFS/src/dfs.c2
-rw-r--r--CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/CORE/SERVICES/DFS/src/dfs.c b/CORE/SERVICES/DFS/src/dfs.c
index 85fe1bf9a7d6..c8d40d5b0049 100644
--- a/CORE/SERVICES/DFS/src/dfs.c
+++ b/CORE/SERVICES/DFS/src/dfs.c
@@ -648,7 +648,7 @@ dfs_control(struct ieee80211com *ic, u_int id,
case DFS_SET_THRESH:
if (insize < sizeof(struct dfs_ioctl_params) || !indata) {
DFS_DPRINTK(dfs, ATH_DEBUG_DFS1,
- "%s: insize=%d, expected=%d bytes, indata=%p\n",
+ "%s: insize=%d, expected=%zu bytes, indata=%p\n",
__func__, insize, sizeof(struct dfs_ioctl_params),
indata);
error = -EINVAL;
diff --git a/CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c b/CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c
index 09203a357999..bbdcf8d6d463 100644
--- a/CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c
+++ b/CORE/SERVICES/DFS/src/dfs_phyerr_tlv.c
@@ -175,7 +175,7 @@ radar_summary_parse(struct ath_dfs *dfs, const char *buf, size_t len,
if (len < sizeof(rs)) {
DFS_DPRINTK(dfs, ATH_DEBUG_DFS_PHYERR |
ATH_DEBUG_DFS_PHYERR_SUM,
- "%s: len (%d) < expected (%d)!",
+ "%s: len (%d) < expected (%zu)!",
__func__,
len,
sizeof(rs));
@@ -223,7 +223,7 @@ radar_fft_search_report_parse(struct ath_dfs *dfs, const char *buf, size_t len,
if (len < sizeof(rs)) {
DFS_DPRINTK(dfs, ATH_DEBUG_DFS_PHYERR |
ATH_DEBUG_DFS_PHYERR_SUM,
- "%s: len (%d) < expected (%d)!",
+ "%s: len (%d) < expected (%zu)!",
__func__,
len,
sizeof(rs));
@@ -276,7 +276,7 @@ tlv_parse_frame(struct ath_dfs *dfs, struct rx_radar_status *rs,
bool false_detect = false;
DFS_DPRINTK(dfs, ATH_DEBUG_DFS_PHYERR,
- "%s: total length = %d bytes", __func__, len);
+ "%s: total length = %zu bytes", __func__, len);
while ((i < len ) && (false_detect == false)) {
/* Ensure we at least have four bytes */
if ((len - i) < sizeof(tlv_hdr)) {