History

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.

Kalle Valo committed 13 years ago

Commit 0d4e6711 parent 856a8501 file · +7 −7Browse files

Unified · Split

drivers/net/wireless/ath/ath6kl/trace.h+7−7
@@ -53,7 +53,7 @@ TRACE_EVENT(ath6kl_wmi_cmd, · 52 unmodified lines
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_len57 __entry->id, __entry->buf_len
58 )58 )
59);59);
@@ -76,7 +76,7 @@ TRACE_EVENT(ath6kl_wmi_event, · 16 unmodified lines
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_len80 __entry->id, __entry->buf_len
81 )81 )
82);82);
@@ -108,7 +108,7 @@ TRACE_EVENT(ath6kl_sdio, · 25 unmodified lines
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, · 46 unmodified lines
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, · 18 unmodified lines
186 ),186 ),
187 187
188 TP_printk(188 TP_printk(
189 "irq len %d\n", __entry->buf_len189 "irq len %zd\n", __entry->buf_len
190 )190 )
191);191);
192 192
@@ -211,7 +211,7 @@ TRACE_EVENT(ath6kl_htc_rx, · 18 unmodified lines
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_len217 __entry->buf_len
@@ -239,7 +239,7 @@ TRACE_EVENT(ath6kl_htc_tx, · 21 unmodified lines
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_len245 __entry->buf_len

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t