[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080716115057.47b3e117.randy.dunlap@oracle.com>
Date: Wed, 16 Jul 2008 11:50:57 -0700
From: Randy Dunlap <randy.dunlap@...cle.com>
To: lkml <linux-kernel@...r.kernel.org>, dwmw2 <dwmw2@...radead.org>
Cc: scsi <linux-scsi@...r.kernel.org>,
jejb <James.Bottomley@...senPartnership.com>
Subject: [PATCH -next] scsi: fix advansys printk format warnings
From: Randy Dunlap <randy.dunlap@...cle.com>
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'
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
drivers/scsi/advansys.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- linux-next-20080716.orig/drivers/scsi/advansys.c
+++ linux-next-20080716/drivers/scsi/advansys.c
@@ -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/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists