]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/srpt: Improve a debug message
authorBart Van Assche <bvanassche@acm.org>
Mon, 30 Sep 2019 23:17:03 +0000 (16:17 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 4 Oct 2019 18:35:07 +0000 (15:35 -0300)
The ib_srpt driver uses two different identifiers while registering a
session with the LIO core. Report both identifiers if the modified
pr_debug() statement is enabled.

Link: https://lore.kernel.org/r/20190930231707.48259-12-bvanassche@acm.org
Cc: Honggang LI <honli@redhat.com>
Cc: Laurence Oberman <loberman@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/ulp/srpt/ib_srpt.c

index fbfadeedc195783f4e3187ed721317ad315f8a93..dabaea30132809a5baaa8fdcda27390479146771 100644 (file)
@@ -2293,7 +2293,8 @@ static int srpt_cm_req_recv(struct srpt_device *const sdev,
                        be64_to_cpu(*(__be64 *)nexus->i_port_id),
                        be64_to_cpu(*(__be64 *)(nexus->i_port_id + 8)));
 
-       pr_debug("registering session %s\n", ch->sess_name);
+       pr_debug("registering src addr %s or i_port_id %s\n", ch->sess_name,
+                i_port_id);
 
        tag_num = ch->rq_size;
        tag_size = 1; /* ib_srpt does not use se_sess->sess_cmd_map */