Skip to contentSkip to conversation

mac80211: fix "format '%d' expects type 'int', but argument 7 has type 'long unsigned int'" warning

PATCH In review Miguel Botón 2 participants 2 messages Oct 24, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: fix "format '%d' expects type 'int', but argument 7 has type 'long unsigned int'" warning

printf() expects an "integer" value but we give it a "long unsigned integer".

diff -ruN linux-2.6.24-rc1.orig/net/mac80211/ieee80211_sta.c linux-2.6.24-rc1/net/mac80211/ieee80211_sta.c
--- linux-2.6.24-rc1.orig/net/mac80211/ieee80211_sta.c 2007-10-24 16:06:49.000000000 +0200
+++ linux-2.6.24-rc1/net/mac80211/ieee80211_sta.c 2007-10-24
16:12:05.000000000 +0200
@@ -1182,7 +1182,7 @@
aid = le16_to_cpu(mgmt->u.assoc_resp.aid);

printk(KERN_DEBUG "%s: RX %sssocResp from %s (capab=0x%x "
- "status=%d aid=%d)\n",
+ "status=%d aid=%ld)\n",
dev->name, reassoc ? "Rea" : "A", print_mac(mac, mgmt->sa), capab_info, status_code, aid & ~(BIT(15) | BIT(14)));

Signature · 1 line
	Miguel Botón
#1 lore raw

Third submission of a patch like this since day before yesterday...I promise, I have it.

Please send wireless patches to [email protected], and CC me.

BTW, this patch appears to be linewrap-damaged...

Thanks,

John

Quoted 20 lines · Miguel Botón

printf() expects an "integer" value but we give it a "long unsigned integer".

diff -ruN linux-2.6.24-rc1.orig/net/mac80211/ieee80211_sta.c linux-2.6.24-rc1/net/mac80211/ieee80211_sta.c
--- linux-2.6.24-rc1.orig/net/mac80211/ieee80211_sta.c 2007-10-24 16:06:49.000000000 +0200
+++ linux-2.6.24-rc1/net/mac80211/ieee80211_sta.c 2007-10-24
16:12:05.000000000 +0200

(quoted diff) +1 -1
@@ -1182,7 +1182,7 @@
 	aid = le16_to_cpu(mgmt->u.assoc_resp.aid);
 
 	printk(KERN_DEBUG "%s: RX %sssocResp from %s (capab=0x%x "
-	       "status=%d aid=%d)\n",
+	       "status=%d aid=%ld)\n",
 	       dev->name, reassoc ? "Rea" : "A", print_mac(mac, mgmt->sa),
 	       capab_info, status_code, aid & ~(BIT(15) | BIT(14)));
 
Signature · 2 lines
-- 
	Miguel Botón
Signature · 2 lines
John W. Linville
[email protected]