[ofa-general] ***SPAM*** [PATCH] opensm/osm_pkey_mgr.c: Fix pkey endian in log message

Hal Rosenstock hnrose at comcast.net
Tue Apr 21 08:46:12 PDT 2009


Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/opensm/opensm/osm_pkey_mgr.c b/opensm/opensm/osm_pkey_mgr.c
index ae16eb6..9b76ed7 100644
--- a/opensm/opensm/osm_pkey_mgr.c
+++ b/opensm/opensm/osm_pkey_mgr.c
@@ -119,7 +119,7 @@ pkey_mgr_process_physical_port(IN osm_log_t * p_log,
 			OSM_LOG(p_log, OSM_LOG_ERROR, "ERR 0503: "
 				"Failed to obtain P_Key 0x%04x block and index for node "
 				"0x%016" PRIx64 " port %u\n",
-				ib_pkey_get_base(pkey),
+				cl_ntoh16(ib_pkey_get_base(pkey)),
 				cl_ntoh64(osm_node_get_node_guid(p_node)),
 				osm_physp_get_port_num(p_physp));
 			return;



More information about the general mailing list