Skip to contentSkip to conversation

scsi: fix advansys printk format warnings

PATCH In review Randy Dunlap 2 participants 3 messages Jul 16, 2008

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

PATCH 1/1 scsi: fix advansys printk format warnings

From: Randy Dunlap <[email protected]>

Fix printk format warnings (firmware-related):

linux-next-20080716/drivers/scsi/advansys.c:4788: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' linux-next-20080716/drivers/scsi/advansys.c:5117: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' linux-next-20080716/drivers/scsi/advansys.c:5631: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' linux-next-20080716/drivers/scsi/advansys.c:6131: warning: format '%d' expects type 'int', but argument 2 has type 'size_t'

---
 drivers/scsi/advansys.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/scsi/advansys.c +4 -4
@@ -4784,7 +4784,7 @@ static ushort AscInitAsc1000Driver(ASC_D
 		return err;
 	}
 	if (fw->size < 4) {
-		printk(KERN_ERR "Bogus length %d in image \"%s\"\n",
+		printk(KERN_ERR "Bogus length %zu in image \"%s\"\n",
 		       fw->size, fwname);
 		release_firmware(fw);
 		return -EINVAL;
@@ -5113,7 +5113,7 @@ static int AdvInitAsc3550Driver(ADV_DVC_
 		return err;
 	}
 	if (fw->size < 4) {
-		printk(KERN_ERR "Bogus length %d in image \"%s\"\n",
+		printk(KERN_ERR "Bogus length %zu in image \"%s\"\n",
 		       fw->size, fwname);
 		release_firmware(fw);
 		return -EINVAL;
@@ -5627,7 +5627,7 @@ static int AdvInitAsc38C0800Driver(ADV_D
 		return err;
 	}
 	if (fw->size < 4) {
-		printk(KERN_ERR "Bogus length %d in image \"%s\"\n",
+		printk(KERN_ERR "Bogus length %zu in image \"%s\"\n",
 		       fw->size, fwname);
 		release_firmware(fw);
 		return -EINVAL;
@@ -6127,7 +6127,7 @@ static int AdvInitAsc38C1600Driver(ADV_D
 		return err;
 	}
 	if (fw->size < 4) {
-		printk(KERN_ERR "Bogus length %d in image \"%s\"\n",
+		printk(KERN_ERR "Bogus length %zu in image \"%s\"\n",
 		       fw->size, fwname);
 		release_firmware(fw);
 		return -EINVAL;

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

#1 lore raw
Quoted 8 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix printk format warnings (firmware-related):

linux-next-20080716/drivers/scsi/advansys.c:4788: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' linux-next-20080716/drivers/scsi/advansys.c:5117: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' linux-next-20080716/drivers/scsi/advansys.c:5631: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' linux-next-20080716/drivers/scsi/advansys.c:6131: warning: format '%d' expects type 'int', but argument 2 has type 'size_t'

Thanks. We'll roll those into the original patches, if that's OK with you.

Signature · 1 line
dwmw2     @linux.intel.com
#2 lore raw
Quoted 5 lines · On Wed, 16 Jul 2008 11:59:33 -0700 David Woodhouse wrote:
Quoted 4 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix printk format warnings (firmware-related):

Quoted 8 lines
Quoted 4 lines

linux-next-20080716/drivers/scsi/advansys.c:4788: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' linux-next-20080716/drivers/scsi/advansys.c:5117: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' linux-next-20080716/drivers/scsi/advansys.c:5631: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' linux-next-20080716/drivers/scsi/advansys.c:6131: warning: format '%d' expects type 'int', but argument 2 has type 'size_t'

Thanks. We'll roll those into the original patches, if that's OK with you.

Ack.

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