public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: arm: fas216: Use %llu to print 'u64' format
@ 2014-07-10 23:33 Fabio Estevam
  2014-07-11  6:23 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2014-07-10 23:33 UTC (permalink / raw)
  To: JBottomley; +Cc: linux-scsi, Fabio Estevam

From: Fabio Estevam <fabio.estevam@freescale.com>

The following warning is seen when building for ARM:

drivers/scsi/arm/fas216.c:3003:3: warning: format '%d' expects argument of type
'int', but argument 4 has type 'u64' [-Wformat=]

Use %llu to print 'u64' format.

Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/scsi/arm/fas216.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c
index b46a6f6..aeddd11 100644
--- a/drivers/scsi/arm/fas216.c
+++ b/drivers/scsi/arm/fas216.c
@@ -3000,7 +3000,7 @@ void fas216_print_devices(FAS216_Info *info, struct seq_file *m)
 
 	shost_for_each_device(scd, info->host) {
 		dev = &info->device[scd->id];
-		seq_printf(m, "     %d/%d   ", scd->id, scd->lun);
+		seq_printf(m, "     %d/%llu   ", scd->id, scd->lun);
 		if (scd->tagged_supported)
 			seq_printf(m, "%3sabled(%3d) ",
 				     scd->simple_tags ? "en" : "dis",
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-07-11 11:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-10 23:33 [PATCH] scsi: arm: fas216: Use %llu to print 'u64' format Fabio Estevam
2014-07-11  6:23 ` Christoph Hellwig
2014-07-11  6:30   ` Hannes Reinecke
2014-07-11  6:34     ` Christoph Hellwig
2014-07-11 11:31   ` Fabio Estevam

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