[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20080716115054.f13e9ae6.randy.dunlap@oracle.com>
Date: Wed, 16 Jul 2008 11:50:54 -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 qla1280 printk format warnings
From: Randy Dunlap <randy.dunlap@...cle.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@...cle.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/
--
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