Skip to contentSkip to conversation

iwmc3200wifi: fix printk format

PATCH In review Randy Dunlap 2 participants 2 messages May 26, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iwmc3200wifi: fix printk format

From: Randy Dunlap <[email protected]>

Fix printk format for size_t variable:

drivers/net/wireless/iwmc3200wifi/fw.c:75: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'

---
 drivers/net/wireless/iwmc3200wifi/fw.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/iwmc3200wifi/fw.c +1 -1
@@ -72,7 +72,7 @@ static int iwm_fw_op_offset(struct iwm_p
 	}
 
 	if (fw->size < IWM_HDR_LEN) {
-		IWM_ERR(iwm, "FW is too small (%d)\n", fw->size);
+		IWM_ERR(iwm, "FW is too small (%zu)\n", fw->size);
 		return -EINVAL;
 	}
 
Signature · 3 lines
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix printk format for size_t variable:

drivers/net/wireless/iwmc3200wifi/fw.c:75: warning: format '%d' expects type 'int', but argument 4 has type 'size_t'

Thanks Randy.

Cheers,
Samuel.

Quoted 17 lines
---
 drivers/net/wireless/iwmc3200wifi/fw.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/iwmc3200wifi/fw.c +1 -1
@@ -72,7 +72,7 @@ static int iwm_fw_op_offset(struct iwm_p
 	}
 
 	if (fw->size < IWM_HDR_LEN) {
-		IWM_ERR(iwm, "FW is too small (%d)\n", fw->size);
+		IWM_ERR(iwm, "FW is too small (%zu)\n", fw->size);
 		return -EINVAL;
 	}