aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2013-03-19 09:25:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-03-20 08:55:26 -0400
commit0d4e67174b03e3dcfe75ce7ec488770a5d443bf4 (patch)
tree6fa94f73f3da6ea4035d852e89bbdc0d2bc7c167 /drivers/net/wireless/ath/ath6kl
parent856a850afdd778fad7ded4240d333a8c3b05b136 (diff)
ath6kl: fix size_t printf warnings
My new tracing code for ath6kl introduced these warnings on 64-bit: trace.h:38:1: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat] trace.h:61:1: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat] trace.h:84:1: warning: format '%d' expects argument of type 'int', but argument 6 has type 'size_t' [-Wformat] trace.h:119:1: warning: format '%d' expects argument of type 'int', but argument 7 has type 'size_t' [-Wformat] trace.h:173:1: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat] trace.h:193:1: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' [-Wformat] trace.h:221:1: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t' [-Wformat] Fix them by using %zd. Reported-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl')
-rw-r--r--drivers/net/wireless/ath/ath6kl/trace.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/trace.h b/drivers/net/wireless/ath/ath6kl/trace.h
index 6af6fa038312..1a1ea7881b4d 100644
--- a/drivers/net/wireless/ath/ath6kl/trace.h
+++ b/drivers/net/wireless/ath/ath6kl/trace.h
@@ -53,7 +53,7 @@ TRACE_EVENT(ath6kl_wmi_cmd,
53 ), 53 ),
54 54
55 TP_printk( 55 TP_printk(
56 "id %d len %d", 56 "id %d len %zd",
57 __entry->id, __entry->buf_len 57 __entry->id, __entry->buf_len
58 ) 58 )
59); 59);
@@ -76,7 +76,7 @@ TRACE_EVENT(ath6kl_wmi_event,
76 ), 76 ),
77 77
78 TP_printk( 78 TP_printk(
79 "id %d len %d", 79 "id %d len %zd",
80 __entry->id, __entry->buf_len 80 __entry->id, __entry->buf_len
81 ) 81 )
82); 82);
@@ -108,7 +108,7 @@ TRACE_EVENT(ath6kl_sdio,
108 ), 108 ),
109 109
110 TP_printk( 110 TP_printk(
111 "%s addr 0x%x flags 0x%x len %d\n", 111 "%s addr 0x%x flags 0x%x len %zd\n",
112 __entry->tx ? "tx" : "rx", 112 __entry->tx ? "tx" : "rx",
113 __entry->addr, 113 __entry->addr,
114 __entry->flags, 114 __entry->flags,
@@ -161,7 +161,7 @@ TRACE_EVENT(ath6kl_sdio_scat,
161 ), 161 ),
162 162
163 TP_printk( 163 TP_printk(
164 "%s addr 0x%x flags 0x%x entries %d total_len %d\n", 164 "%s addr 0x%x flags 0x%x entries %d total_len %zd\n",
165 __entry->tx ? "tx" : "rx", 165 __entry->tx ? "tx" : "rx",
166 __entry->addr, 166 __entry->addr,
167 __entry->flags, 167 __entry->flags,
@@ -186,7 +186,7 @@ TRACE_EVENT(ath6kl_sdio_irq,
186 ), 186 ),
187 187
188 TP_printk( 188 TP_printk(
189 "irq len %d\n", __entry->buf_len 189 "irq len %zd\n", __entry->buf_len
190 ) 190 )
191); 191);
192 192
@@ -211,7 +211,7 @@ TRACE_EVENT(ath6kl_htc_rx,
211 ), 211 ),
212 212
213 TP_printk( 213 TP_printk(
214 "status %d endpoint %d len %d\n", 214 "status %d endpoint %d len %zd\n",
215 __entry->status, 215 __entry->status,
216 __entry->endpoint, 216 __entry->endpoint,
217 __entry->buf_len 217 __entry->buf_len
@@ -239,7 +239,7 @@ TRACE_EVENT(ath6kl_htc_tx,
239 ), 239 ),
240 240
241 TP_printk( 241 TP_printk(
242 "status %d endpoint %d len %d\n", 242 "status %d endpoint %d len %zd\n",
243 __entry->status, 243 __entry->status,
244 __entry->endpoint, 244 __entry->endpoint,
245 __entry->buf_len 245 __entry->buf_len