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
5353 ),
5454
5555 TP_printk(
56− "id %d len %d",
56+ "id %d len %zd",
5757 __entry->id, __entry->buf_len
5858 )
5959 );
@@ -76,7 +76,7 @@ TRACE_EVENT(ath6kl_wmi_event, · 16 unmodified lines
7676 ),
7777
7878 TP_printk(
79− "id %d len %d",
79+ "id %d len %zd",
8080 __entry->id, __entry->buf_len
8181 )
8282 );
@@ -108,7 +108,7 @@ TRACE_EVENT(ath6kl_sdio, · 25 unmodified lines
108108 ),
109109
110110 TP_printk(
111− "%s addr 0x%x flags 0x%x len %d\n",
111+ "%s addr 0x%x flags 0x%x len %zd\n",
112112 __entry->tx ? "tx" : "rx",
113113 __entry->addr,
114114 __entry->flags,
@@ -161,7 +161,7 @@ TRACE_EVENT(ath6kl_sdio_scat, · 46 unmodified lines
161161 ),
162162
163163 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",
165165 __entry->tx ? "tx" : "rx",
166166 __entry->addr,
167167 __entry->flags,
@@ -186,7 +186,7 @@ TRACE_EVENT(ath6kl_sdio_irq, · 18 unmodified lines
186186 ),
187187
188188 TP_printk(
189− "irq len %d\n", __entry->buf_len
189+ "irq len %zd\n", __entry->buf_len
190190 )
191191 );
192192
@@ -211,7 +211,7 @@ TRACE_EVENT(ath6kl_htc_rx, · 18 unmodified lines
211211 ),
212212
213213 TP_printk(
214− "status %d endpoint %d len %d\n",
214+ "status %d endpoint %d len %zd\n",
215215 __entry->status,
216216 __entry->endpoint,
217217 __entry->buf_len
@@ -239,7 +239,7 @@ TRACE_EVENT(ath6kl_htc_tx, · 21 unmodified lines
239239 ),
240240
241241 TP_printk(
242− "status %d endpoint %d len %d\n",
242+ "status %d endpoint %d len %zd\n",
243243 __entry->status,
244244 __entry->endpoint,
245245 __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