From: Bart Van Assche Date: Tue, 14 Feb 2017 18:56:33 +0000 (-0800) Subject: IB/srp: Make a diagnostic message more informative X-Git-Tag: MMI-PSA29.97-13-9~6131^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7139ca80f7cd79e034a5c5f9c242bfb0471545c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git IB/srp: Make a diagnostic message more informative Report the destination port GID if connecting fails. Signed-off-by: Bart Van Assche Cc: Israel Rukshin Cc: Max Gurtovoy Cc: Laurence Oberman Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 862ee2ff5bb9..33dd0920c248 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -3435,9 +3435,10 @@ static ssize_t srp_create_target(struct device *dev, ret = srp_connect_ch(ch, multich); if (ret) { shost_printk(KERN_ERR, target->scsi_host, - PFX "Connection %d/%d failed\n", + PFX "Connection %d/%d to %pI6 failed\n", ch_start + cpu_idx, - target->ch_count); + target->ch_count, + ch->target->orig_dgid.raw); if (node_idx == 0 && cpu_idx == 0) { goto err_disconnect; } else {