Skip to contentSkip to conversation

e100: fix printk format warning

PATCH Applied [email protected] 1 participant 1 message Jul 4, 2008

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

PATCH 5/6 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 renamed from drivers/net/e100.c~e100-fix-printk-format-warning +1 -1
diff -puN drivers/net/e100.c~e100-fix-printk-format-warning drivers/net/e100.c
@@ -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);

_