Explorar o código

IB/srp: Make a diagnostic message more informative

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>
Bart Van Assche %!s(int64=8) %!d(string=hai) anos
pai
achega
a7139ca80f
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      drivers/infiniband/ulp/srp/ib_srp.c

+ 3 - 2
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 {