From: Randy Dunlap <randy.dunlap@oracle.com>
To: lkml <linux-kernel@vger.kernel.org>, dwmw2 <dwmw2@infradead.org>
Cc: scsi <linux-scsi@vger.kernel.org>,
jejb <James.Bottomley@HansenPartnership.com>
Subject: [PATCH -next] scsi: fix qla1280 printk format warnings
Date: Wed, 16 Jul 2008 11:50:54 -0700 [thread overview]
Message-ID: <20080716115054.f13e9ae6.randy.dunlap@oracle.com> (raw)
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/
reply other threads:[~2008-07-16 18:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080716115054.f13e9ae6.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®