summaryrefslogtreecommitdiff
path: root/drivers/infiniband/ulp
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2014-03-29 01:03:40 +0400
committerRoland Dreier <roland@purestorage.com>2014-04-01 22:01:08 +0400
commit39c978cd1704dc03f6913bd40f858def7fd31185 (patch)
treee4dd55a6f5dca5ed655cdf77d68809cdc5af1a51 /drivers/infiniband/ulp
parent6192d4e6bbc7e232093f508b77bd555fd0323369 (diff)
downloadlinux-39c978cd1704dc03f6913bd40f858def7fd31185.tar.xz
IB/iser: Fix sector_t format warning
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>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r--drivers/infiniband/ulp/iser/iser_verbs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c
index abbb6ec90d14..d2848e4e4274 100644
--- a/drivers/infiniband/ulp/iser/iser_verbs.c
+++ b/drivers/infiniband/ulp/iser/iser_verbs.c
@@ -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);