Skip to contentSkip to conversation

e100: fix printk format warning

PATCH In review Randy Dunlap 2 participants 2 messages Jun 18, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 e100: fix printk format warning

From: Randy Dunlap <[email protected]>

Fix printk format warning:

drivers/net/e100.c:1145: warning: format '%d' expects type 'int', but argument 5 has type 'size_t'

---
 drivers/net/e100.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/e100.c +1 -1
@@ -1142,7 +1142,7 @@ static const struct firmware *e100_reque
 	/* Firmware should be precisely UCODE_SIZE (words) plus three bytes
 	   indicating the offsets for BUNDLESMALL, BUNDLEMAX, INTDELAY */
 	if (fw->size != UCODE_SIZE * 4 + 3) {
-		DPRINTK(PROBE,ERR, "Firmware \"%s\" has wrong size %d\n",
+		DPRINTK(PROBE,ERR, "Firmware \"%s\" has wrong size %zu\n",
 			fw_name, fw->size);
 		release_firmware(fw);
 		return ERR_PTR(-EINVAL);

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

#1 lore raw
Quoted 15 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix printk format warning:

drivers/net/e100.c:1145: warning: format '%d' expects type 'int', but argument 5 has type 'size_t'

---
 drivers/net/e100.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

drivers/net/e100.c static const struct firmware *e100_reque · line 1148

Quoted 8 lines
drivers/net/e100.c +1 -1
@@ -1142,7 +1142,7 @@ static const struct firmware *e100_reque
       /* Firmware should be precisely UCODE_SIZE (words) plus three bytes
          indicating the offsets for BUNDLESMALL, BUNDLEMAX, INTDELAY */
       if (fw->size != UCODE_SIZE * 4 + 3) {
-               DPRINTK(PROBE,ERR, "Firmware \"%s\" has wrong size %d\n",
+               DPRINTK(PROBE,ERR, "Firmware \"%s\" has wrong size %zu\n",
                       fw_name, fw->size);
               release_firmware(fw);
               return ERR_PTR(-EINVAL);

Ack.

Signature · 2 lines
Cheers,
Jeff