IB/iser: Fix sector_t format warning
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 28 Mar 2014 21:03:40 +0000 (14:03 -0700)
committerRoland Dreier <roland@purestorage.com>
Tue, 1 Apr 2014 18:01:08 +0000 (11:01 -0700)
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>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_verbs.c

index abbb6ec..d2848e4 100644 (file)
@@ -1178,9 +1178,10 @@ u8 iser_check_task_pi_status(struct iscsi_iser_task *iser_task,
                        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);