public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] infiniband: fix iser_verbs.c format warning
       [not found] <20140328180950.322d12920ce31e0ad3dace59@canb.auug.org.au>
@ 2014-03-28 21:03 ` Randy Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2014-03-28 21:03 UTC (permalink / raw)
  To: Stephen Rothwell, linux-next
  Cc: linux-kernel, Or Gerlitz, Roi Dayan, linux-rdma, Andrew Morton,
	Roland Dreier, Sean Hefty, Hal Rosenstock

From: Randy Dunlap <rdunlap@infradead.org>

Fix pr_err (printk) format warning:

drivers/infiniband/ulp/iser/iser_verbs.c:1181:4: warning: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'sector_t' [-Wformat]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc:	Or Gerlitz <ogerlitz@mellanox.com>
Cc:	Roi Dayan <roid@mellanox.com>
Cc:	linux-rdma@vger.kernel.org
---
 drivers/infiniband/ulp/iser/iser_verbs.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- linux-next-20140328.orig/drivers/infiniband/ulp/iser/iser_verbs.c
+++ linux-next-20140328/drivers/infiniband/ulp/iser/iser_verbs.c
@@ -1178,9 +1178,10 @@ u8 iser_check_task_pi_status(struct iscs
 			do_div(sector_off, sector_size + 8);
 			*sector = scsi_get_lba(iser_task->sc) + sector_off;
 
-			pr_err("PI error found type %d at sector %lx "
+			pr_err("PI error found type %d at sector %llx "
 			       "expected %x vs actual %x\n",
-			       mr_status.sig_err.err_type, *sector,
+			       mr_status.sig_err.err_type,
+			       (unsigned long long)*sector,
 			       mr_status.sig_err.expected,
 			       mr_status.sig_err.actual);
 

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

only message in thread, other threads:[~2014-03-28 21:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20140328180950.322d12920ce31e0ad3dace59@canb.auug.org.au>
2014-03-28 21:03 ` [PATCH -next] infiniband: fix iser_verbs.c format warning Randy Dunlap

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