From: Johannes Berg Date: Mon, 22 Oct 2007 12:51:37 +0000 (+0200) Subject: [PATCH] mac80211: fix printk warning on 64-bit X-Git-Tag: v2.6.24-rc2~132^2~22^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddd68587d0470498eb161de37b8f9fb5c48786a3;p=pandora-kernel.git [PATCH] mac80211: fix printk warning on 64-bit My AID message patch introduced a warning on 64-bit machines because ~ extends to unsigned long: | net/mac80211/ieee80211_sta.c: In function ‘ieee80211_rx_mgmt_assoc_resp’: | net/mac80211/ieee80211_sta.c:1187: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘long unsigned int’ This fixes it by explicitly casting the result to u16 (which 'aid' is). Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed