public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: fix "format '%d' expects type 'int', but argument 7 has type 'long unsigned int'" warning
@ 2007-10-24 14:37 Miguel Botón
  2007-10-24 15:25 ` John W. Linville
  0 siblings, 1 reply; 2+ messages in thread
From: Miguel Botón @ 2007-10-24 14:37 UTC (permalink / raw)
  To: linux-kernel

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)));
 

-- 
	Miguel Botón

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] mac80211: fix "format '%d' expects type 'int', but argument 7 has type 'long unsigned int'" warning
  2007-10-24 14:37 [PATCH] mac80211: fix "format '%d' expects type 'int', but argument 7 has type 'long unsigned int'" warning Miguel Botón
@ 2007-10-24 15:25 ` John W. Linville
  0 siblings, 0 replies; 2+ messages in thread
From: John W. Linville @ 2007-10-24 15:25 UTC (permalink / raw)
  To: Miguel Botón; +Cc: linux-kernel

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

Please send wireless patches to linux-wireless@vger.kernel.org, and CC me.

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

Thanks,

John

On Wed, Oct 24, 2007 at 04:37:08PM +0200, Miguel Botón wrote:
> 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)));
>  
> 
> -- 
> 	Miguel Botón

-- 
John W. Linville
linville@redhat.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-24 15:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-24 14:37 [PATCH] mac80211: fix "format '%d' expects type 'int', but argument 7 has type 'long unsigned int'" warning Miguel Botón
2007-10-24 15:25 ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox