mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] scsi: fix qla1280 printk format warnings
@ 2008-07-16 18:50 Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2008-07-16 18:50 UTC (permalink / raw)
  To: lkml, dwmw2; +Cc: scsi, jejb

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix printk format warnings (firmware-related):

linux-next-20080716/drivers/scsi/qla1280.c:1654: warning: format '%d' expects type 'int', but argument 2 has type 'size_t'
linux-next-20080716/drivers/scsi/qla1280.c:1713: warning: format '%d' expects type 'int', but argument 2 has type 'size_t'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/scsi/qla1280.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20080716.orig/drivers/scsi/qla1280.c
+++ linux-next-20080716/drivers/scsi/qla1280.c
@@ -1650,7 +1650,7 @@ qla1280_load_firmware_pio(struct scsi_ql
 		return err;
 	}
 	if ((fw->size % 2) || (fw->size < 6)) {
-		printk(KERN_ERR "Bogus length %d in image \"%s\"\n",
+		printk(KERN_ERR "Bogus length %zu in image \"%s\"\n",
 		       fw->size, ql1280_board_tbl[ha->devnum].fwname);
 		err = -EINVAL;
 		goto out;
@@ -1709,7 +1709,7 @@ qla1280_load_firmware_dma(struct scsi_ql
 		return err;
 	}
 	if ((fw->size % 2) || (fw->size < 6)) {
-		printk(KERN_ERR "Bogus length %d in image \"%s\"\n",
+		printk(KERN_ERR "Bogus length %zu in image \"%s\"\n",
 		       fw->size, ql1280_board_tbl[ha->devnum].fwname);
 		err = -EINVAL;
 		goto out;


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-16 18:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-16 18:50 [PATCH -next] scsi: fix qla1280 printk format warnings Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®