IB/srp: Make a diagnostic message more informative
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 14 Feb 2017 18:56:33 +0000 (10:56 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 19 Feb 2017 14:51:53 +0000 (09:51 -0500)
Report the destination port GID if connecting fails.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Israel Rukshin <israelr@mellanox.com>
Cc: Max Gurtovoy <maxg@mellanox.com>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c

index 862ee2ff5bb9178a4ed7976c9d6b826192279158..33dd0920c248a72b7c883ba91f899a43ae74a7a9 100644 (file)
@@ -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 {