Linux wireless drivers development
 help / color / mirror / Atom feed
From: Jeff Garzik <jeff@garzik.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: akpm@linux-foundation.org, linux-wireless@vger.kernel.org,
	linville@tuxdriver.com
Subject: [PATCH 10/12] mac80211: fix warning created by BIT()
Date: Tue, 23 Oct 2007 18:36:45 -0400 (EDT)	[thread overview]
Message-ID: <20071023223645.421AB1F81B6@havoc.gtf.org> (raw)
In-Reply-To: tueoct232007613pm.likjasfdlkjdas987@havoc.gtf.org

Now that BIT() forces unsigned long, this warning appears:

net/mac80211/ieee80211_sta.c: In function =E2=80=98ieee80211_rx_mgmt_as=
soc_resp=E2=80=99:
net/mac80211/ieee80211_sta.c:1187: warning: format =E2=80=98%d=E2=80=99=
 expects type =E2=80=98int=E2=80=99, but argument 7 has type =E2=80=98l=
ong unsigned int=E2=80=99

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
---

diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.=
c
index f7ffeec..bdfd901 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -1182,7 +1182,7 @@ static void ieee80211_rx_mgmt_assoc_resp(struct n=
et_device *dev,
 	aid =3D le16_to_cpu(mgmt->u.assoc_resp.aid);
=20
 	printk(KERN_DEBUG "%s: RX %sssocResp from %s (capab=3D0x%x "
-	       "status=3D%d aid=3D%d)\n",
+	       "status=3D%d aid=3D%ld)\n",
 	       dev->name, reassoc ? "Rea" : "A", print_mac(mac, mgmt->sa),
 	       capab_info, status_code, aid & ~(BIT(15) | BIT(14)));
=20
-
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

       reply	other threads:[~2007-10-23 22:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <tueoct232007613pm.likjasfdlkjdas987@havoc.gtf.org>
2007-10-23 22:36 ` Jeff Garzik [this message]
2007-10-23 23:15   ` [PATCH 10/12] mac80211: fix warning created by BIT() Randy Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071023223645.421AB1F81B6@havoc.gtf.org \
    --to=jeff@garzik.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox