[openib-general] [PATCH][TRIVIAL] osmtest/osmtest.c: Fix endian of capability mask output

Hal Rosenstock halr at voltaire.com
Fri Dec 8 13:05:46 PST 2006


osmtest/osmtest.c: Fix endian of capability mask output

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

diff --git a/osm/osmtest/osmtest.c b/osm/osmtest/osmtest.c
index b3f2bb4..6a571f5 100644
--- a/osm/osmtest/osmtest.c
+++ b/osm/osmtest/osmtest.c
@@ -3749,7 +3749,8 @@ osmtest_validate_port_data( IN osmtest_t
              "Field mismatch port LID 0x%X Num:0x%X\n"
              "\t\t\t\tExpected capability_mask 0x%X, received 0x%X\n",
              cl_ntoh16( p_rec->lid ), p_rec->port_num,
-             p_port->rec.port_info.capability_mask, p_rec->port_info.capability_mask );
+             cl_ntoh32( p_port->rec.port_info.capability_mask ),
+             cl_ntoh32( p_rec->port_info.capability_mask ) );
     status = IB_ERROR;
     goto Exit;
   }







More information about the general mailing list