print port guids in error message when there is no shared pkey between the 
ports.

Signed-off-by: Eli Dorfman <[EMAIL PROTECTED]>
---
 opensm/opensm/osm_sa_path_record.c |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/opensm/opensm/osm_sa_path_record.c 
b/opensm/opensm/osm_sa_path_record.c
index fc425d5..b100384 100644
--- a/opensm/opensm/osm_sa_path_record.c
+++ b/opensm/opensm/osm_sa_path_record.c
@@ -596,7 +596,10 @@ __osm_pr_rcv_get_path_parms(IN osm_sa_t * sa,
                pkey = p_pr->pkey;
                if (!osm_physp_share_this_pkey(p_src_physp, p_dest_physp, 
pkey)) {
                        OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1F1A: "
-                               "Ports do not share specified PKey 0x%04x\n",
+                               "Ports 0x%016" PRIx64 " 0x%016" PRIx64
+                               " do not share specified PKey 0x%04x\n",
+                               cl_ntoh64(osm_physp_get_port_guid(p_src_physp)),
+                               
cl_ntoh64(osm_physp_get_port_guid(p_dest_physp)),
                                cl_ntoh16(pkey));
                        status = IB_NOT_FOUND;
                        goto Exit;
@@ -618,7 +621,10 @@ __osm_pr_rcv_get_path_parms(IN osm_sa_t * sa,
                                                     p_src_physp, p_dest_physp);
                if (!pkey) {
                        OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1F1E: "
-                               "Ports do not share PKeys defined by QoS 
level\n");
+                               "Ports 0x%016" PRIx64 " 0x%016" PRIx64
+                               " do not share PKeys defined by QoS level\n",
+                               cl_ntoh64(osm_physp_get_port_guid(p_src_physp)),
+                               
cl_ntoh64(osm_physp_get_port_guid(p_dest_physp)));
                        status = IB_NOT_FOUND;
                        goto Exit;
                }
@@ -630,7 +636,10 @@ __osm_pr_rcv_get_path_parms(IN osm_sa_t * sa,
                pkey = osm_physp_find_common_pkey(p_src_physp, p_dest_physp);
                if (!pkey) {
                        OSM_LOG(sa->p_log, OSM_LOG_ERROR, "ERR 1F1B: "
-                               "Ports do not have any shared PKeys\n");
+                               "Ports 0x%016" PRIx64 " 0x%016" PRIx64
+                               " do not have any shared PKeys\n",
+                               cl_ntoh64(osm_physp_get_port_guid(p_src_physp)),
+                               
cl_ntoh64(osm_physp_get_port_guid(p_dest_physp)));
                        status = IB_NOT_FOUND;
                        goto Exit;
                }
-- 
1.5.5

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to