[ofa-general] [PATCH] opensm/osm_helper.c: fix printing trap 258 details

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Tue Aug 4 01:29:06 PDT 2009


Hi Sasha,

Fixing some issues with printing trap 258 details.

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_helper.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/opensm/opensm/osm_helper.c b/opensm/opensm/osm_helper.c
index 57de0d4..07b1e5a 100644
--- a/opensm/opensm/osm_helper.c
+++ b/opensm/opensm/osm_helper.c
@@ -1828,10 +1828,11 @@ void osm_dump_notice(IN osm_log_t * p_log,
 					  lid2),
 				cl_ntoh32(p_ntci->data_details.ntc_257_258.key),
 				cl_ntoh32(p_ntci->data_details.ntc_257_258.
-					  qp1) >> 24,
+					  qp1) >> 28,
 				cl_ntoh32(p_ntci->data_details.ntc_257_258.
 					  qp1) & 0xffffff,
-				cl_ntoh32(p_ntci->data_details.ntc_257_258.qp2),
+				cl_ntoh32(p_ntci->data_details.ntc_257_258.
+					  qp2) & 0xffffff,
 				inet_ntop(AF_INET6, p_ntci->data_details.
 					  ntc_257_258.gid1.raw, gid_str,
 					  sizeof gid_str),
-- 
1.5.1.4




More information about the general mailing list