Skip to contentSkip to conversation

brcm80211: fix warnings in wl_check_firmwares

PATCH In review Stanislav Fomichev 2 participants 3 messages Feb 12, 2011 – Feb 19, 2011 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 brcm80211: fix warnings in wl_check_firmwares

Use %zu instead of %d for size_t

---
 drivers/staging/brcm80211/sys/wl_mac80211.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/brcm80211/sys/wl_mac80211.c +2 -2
index 5faa521..0c87baa 100644
@@ -1822,12 +1822,12 @@ int wl_check_firmwares(struct wl_info *wl)
 			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 %zu/%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 %zu\n",
 				 __func__, fw->size);
 			rc = -EBADF;
 		} else {
Signature · 1 line
1.7.1
#1 lore raw
Quoted 5 lines · Stanislav Fomichev

Use %zu instead of %d for size_t

---
 drivers/staging/brcm80211/sys/wl_mac80211.c |    4 ++--

This doesn't apply to linux-next as this file isn't around anymore :(

thanks,

greg k-h

#2 lore raw
Quoted 8 lines · Stanislav Fomichev
Quoted 5 lines

Use %zu instead of %d for size_t

---
 drivers/staging/brcm80211/sys/wl_mac80211.c |    4 ++--

This doesn't apply to linux-next as this file isn't around anymore :(

This is not relevant anymore as I see you included the other patch with the same title (which is based on the right tree).

Signature · 1 line
	Stas