From: Randy Dunlap <randy.dunlap@oracle•com>
To: Stephen Rothwell <sfr@canb•auug.org.au>,
gregkh@suse•de, driverdevel <devel@driverdev•osuosl.org>
Cc: linux-next@vger•kernel.org, LKML <linux-kernel@vger•kernel.org>
Subject: [PATCH -next] staging/brcm80211: fix printk format warnings
Date: Tue, 1 Mar 2011 16:29:48 -0800 [thread overview]
Message-ID: <20110301162948.34c28d6e.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20110301181119.f1c7a9c3.sfr@canb.auug.org.au>
From: Randy Dunlap <randy.dunlap@oracle•com>
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c:1379: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
drivers/staging/brcm80211/sys/wl_mac80211.c:1827: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
drivers/staging/brcm80211/sys/wl_mac80211.c:1832: warning: format '%d' expects type 'int', but argument 3 has type 'size_t'
Signed-off-by: Randy Dunlap <randy.dunlap@oracle•com>
---
drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c | 2 +-
drivers/staging/brcm80211/sys/wl_mac80211.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
--- linux-next-20110301.orig/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
+++ linux-next-20110301/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
@@ -1376,7 +1376,7 @@ wl_cfg80211_connect(struct wiphy *wiphy,
memcpy(&join_params.params.bssid, ðer_bcast, ETH_ALEN);
wl_ch_to_chanspec(wl->channel, &join_params, &join_params_size);
- WL_DBG("join_param_size %d\n", join_params_size);
+ WL_DBG("join_param_size %zd\n", join_params_size);
if (join_params.ssid.SSID_len < IEEE80211_MAX_SSID_LEN) {
WL_DBG("ssid \"%s\", len (%d)\n",
--- linux-next-20110301.orig/drivers/staging/brcm80211/sys/wl_mac80211.c
+++ linux-next-20110301/drivers/staging/brcm80211/sys/wl_mac80211.c
@@ -1824,12 +1824,12 @@ int wl_check_firmwares(struct wl_info *w
WL_ERROR("%s: invalid bin/hdr fw\n", __func__);
rc = -EBADF;
} else if (fw_hdr->size % sizeof(struct wl_fw_hdr)) {
- WL_ERROR("%s: non integral fw hdr file size %d/%zu\n",
+ WL_ERROR("%s: non integral fw hdr file size %zd/%zu\n",
__func__, fw_hdr->size,
sizeof(struct wl_fw_hdr));
rc = -EBADF;
} else if (fw->size < MIN_FW_SIZE || fw->size > MAX_FW_SIZE) {
- WL_ERROR("%s: out of bounds fw file size %d\n",
+ WL_ERROR("%s: out of bounds fw file size %zd\n",
__func__, fw->size);
rc = -EBADF;
} else {
next prev parent reply other threads:[~2011-03-02 0:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-01 7:11 linux-next: Tree for March 1 Stephen Rothwell
2011-03-01 18:49 ` linux-next: Tree for March 1 (staging/winbond) Randy Dunlap
2011-03-01 19:10 ` Pekka Enberg
2011-03-01 19:19 ` Randy Dunlap
2011-03-01 19:35 ` Pekka Enberg
2011-03-01 19:39 ` Randy Dunlap
2011-03-01 20:05 ` Pekka Enberg
2011-03-01 20:07 ` Greg KH
2011-03-02 0:29 ` Randy Dunlap [this message]
2011-03-02 14:07 ` [PATCH -next] staging/brcm80211: fix printk format warnings Roland Vossen
2011-03-02 21:02 ` Greg KH
2011-03-02 21:05 ` Greg KH
2011-03-02 23:36 ` Stephen Rothwell
2011-03-03 7:20 ` Stanislav Fomichev
2011-03-03 16:08 ` 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=20110301162948.34c28d6e.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle$(echo .)com \
--cc=devel@driverdev$(echo .)osuosl.org \
--cc=gregkh@suse$(echo .)de \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=sfr@canb$(echo .)auug.org.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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