Skip to contentSkip to conversation

scsi: arm: fas216: Use %llu to print 'u64' format

PATCH In review Fabio Estevam 3 participants 5 messages Jul 10, 2014 – Jul 11, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: arm: fas216: Use %llu to print 'u64' format

From: Fabio Estevam <[email protected]>

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.

---
 drivers/scsi/arm/fas216.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/arm/fas216.c +1 -1
index b46a6f6..aeddd11 100644
@@ -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",
Signature · 1 line
1.8.3.2
#1 lore raw

Thanks Fabio,

this looks good to me. Are there any other warnings you got from that autobuilder?

#2 lore raw
Quoted 5 lines · Christoph Hellwig

Thanks Fabio,

this looks good to me. Are there any other warnings you got from that autobuilder?

It _should_ have been fixed with my latest patch for fixing the 64bit LUN fallout. Christoph, have you applied it?

Cheers,

Hannes

Signature · 8 lines
Dr. Hannes Reinecke		      zSeries & Storage
[email protected]			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
Quoted 8 lines · Hannes Reinecke
Quoted 5 lines · Christoph Hellwig

Thanks Fabio,

this looks good to me. Are there any other warnings you got from that autobuilder?

It _should_ have been fixed with my latest patch for fixing the 64bit LUN fallout. Christoph, have you applied it?

Looks like this is in, indeed. Seems like that latest drivers-for-3.17 update hasn't made it into James' for-next and thus linux-next, though.