[ofa-general] [PATCH] opensm/osm_sm_mad_ctrl.c: Fix endian of status in error message

Hal Rosenstock hnrose at comcast.net
Fri Aug 14 04:56:07 PDT 2009


Signed-off-by: Hal Rosenstock <hal.rosenstock>
---
diff --git a/opensm/opensm/osm_sm_mad_ctrl.c b/opensm/opensm/osm_sm_mad_ctrl.c
index 791c848..c211bf8 100644
--- a/opensm/opensm/osm_sm_mad_ctrl.c
+++ b/opensm/opensm/osm_sm_mad_ctrl.c
@@ -637,7 +637,7 @@ static void sm_mad_ctrl_rcv_callback(IN osm_madw_t * p_madw,
 
 	if (status != 0) {
 		OSM_LOG(p_ctrl->p_log, OSM_LOG_ERROR, "ERR 3111: "
-			"Error status = 0x%X\n", status);
+			"Error status = 0x%X\n", cl_ntoh16(status));
 		osm_dump_dr_smp(p_ctrl->p_log, p_smp, OSM_LOG_ERROR);
 	}
 



More information about the general mailing list