From edcde67dddfe0e7c7b20331985c68b596372f7cd Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 11 Dec 2014 12:37:02 +0000 Subject: [PATCH] ib_srpt: Log P_Key during login git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5935 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 94d45d540..3b635f322 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2565,7 +2565,8 @@ static int srpt_cm_req_recv(struct srpt_device *const sdev, " %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x," " t_port_id %04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x and" " it_iu_len %d on port %d" - " (guid=%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x)", + " (guid=%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x);" + " pkey %#04x", be16_to_cpu(*(__be16 *)&req->initiator_port_id[0]), be16_to_cpu(*(__be16 *)&req->initiator_port_id[2]), be16_to_cpu(*(__be16 *)&req->initiator_port_id[4]), @@ -2591,7 +2592,8 @@ static int srpt_cm_req_recv(struct srpt_device *const sdev, be16_to_cpu(raw_port_gid[4]), be16_to_cpu(raw_port_gid[5]), be16_to_cpu(raw_port_gid[6]), - be16_to_cpu(raw_port_gid[7])); + be16_to_cpu(raw_port_gid[7]), + be16_to_cpu(pkey)); nexus = srpt_get_nexus(srpt_tgt, req->initiator_port_id, req->target_port_id);