Commit 85769c6f authored by Bart Van Assche's avatar Bart Van Assche Committed by Doug Ledford

IB/srp: Improve path record query error message

Show all path record query parameters if a path record query fails.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 2a174df0
...@@ -702,7 +702,10 @@ static int srp_lookup_path(struct srp_rdma_ch *ch) ...@@ -702,7 +702,10 @@ static int srp_lookup_path(struct srp_rdma_ch *ch)
ret = ch->status; ret = ch->status;
if (ret < 0) if (ret < 0)
shost_printk(KERN_WARNING, target->scsi_host, shost_printk(KERN_WARNING, target->scsi_host,
PFX "Path record query failed\n"); PFX "Path record query failed: sgid %pI6, dgid %pI6, pkey %#04x, service_id %#16llx\n",
ch->path.sgid.raw, ch->path.dgid.raw,
be16_to_cpu(target->pkey),
be64_to_cpu(target->service_id));
put: put:
scsi_host_put(target->scsi_host); scsi_host_put(target->scsi_host);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment