Improving pkey format in log messages

Signed-off-by:  Yevgeny Kliteynik <[EMAIL PROTECTED]>
---
 opensm/opensm/osm_sa_multipath_record.c |    2 +-
 opensm/opensm/osm_sa_path_record.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opensm/opensm/osm_sa_multipath_record.c 
b/opensm/opensm/osm_sa_multipath_record.c
index efc6a07..a37b726 100644
--- a/opensm/opensm/osm_sa_multipath_record.c
+++ b/opensm/opensm/osm_sa_multipath_record.c
@@ -819,7 +819,7 @@ __osm_mpr_rcv_get_path_parms(IN osm_mpr_rcv_t * const p_rcv,
                osm_log(p_rcv->p_log, OSM_LOG_DEBUG,
                        "__osm_mpr_rcv_get_path_parms: MultiPath params:"
                        " mtu = %u, rate = %u, packet lifetime = %u,"
-                       " pkey = %u, sl = %u, hops = %u\n", mtu, rate,
+                       " pkey = 0x%04X, sl = %u, hops = %u\n", mtu, rate,
                        pkt_life, cl_ntoh16(required_pkey), required_sl, hops);

       Exit:
diff --git a/opensm/opensm/osm_sa_path_record.c 
b/opensm/opensm/osm_sa_path_record.c
index f46a3be..4f20d8e 100644
--- a/opensm/opensm/osm_sa_path_record.c
+++ b/opensm/opensm/osm_sa_path_record.c
@@ -835,7 +835,7 @@ __osm_pr_rcv_get_path_parms(IN osm_pr_rcv_t * const p_rcv,
                osm_log(p_rcv->p_log, OSM_LOG_DEBUG,
                        "__osm_pr_rcv_get_path_parms: Path params:"
                        " mtu = %u, rate = %u, packet lifetime = %u,"
-                       " pkey = %u, sl = %u\n",
+                       " pkey = 0x%04X, sl = %u\n",
                        mtu, rate, pkt_life, cl_ntoh16(pkey), sl);
       Exit:
        OSM_LOG_EXIT(p_rcv->p_log);
-- 
1.5.1.4

_______________________________________________
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