[openib-general] [PATCH] OpenSM/osmtest: Fix display of key violation counters in osmtest_validate_port_data

Hal Rosenstock halr at voltaire.com
Mon Jul 3 05:46:34 PDT 2006


OpenSM/osmtest: Fix display of key violation counters in 
osmtest_validate_port_data

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

Index: osmtest/osmtest.c
===================================================================
--- osmtest/osmtest.c	(revision 8335)
+++ osmtest/osmtest.c	(working copy)
@@ -3919,8 +3919,8 @@ osmtest_validate_port_data( IN osmtest_t
              "Field mismatch port LID 0x%X Num:0x%X\n"
              "\t\t\t\tExpected m_key_violations 0x%X, received 0x%X\n",
              cl_ntoh16( p_rec->lid ), p_rec->port_num,
-             p_port->rec.port_info.m_key_violations,
-             p_rec->port_info.m_key_violations );
+             cl_ntoh16( p_port->rec.port_info.m_key_violations ),
+             cl_ntoh16( p_rec->port_info.m_key_violations ) );
     status = IB_ERROR;
     goto Exit;
   }
@@ -3933,8 +3933,8 @@ osmtest_validate_port_data( IN osmtest_t
              "Field mismatch port LID 0x%X Num:0x%X\n"
              "\t\t\t\tExpected p_key_violations 0x%X, received 0x%X\n",
              cl_ntoh16( p_rec->lid ), p_rec->port_num,
-             p_port->rec.port_info.p_key_violations,
-             p_rec->port_info.p_key_violations );
+             cl_ntoh16( p_port->rec.port_info.p_key_violations ),
+             cl_ntoh16( p_rec->port_info.p_key_violations ) );
     status = IB_ERROR;
     goto Exit;
   }
@@ -3947,8 +3947,8 @@ osmtest_validate_port_data( IN osmtest_t
              "Field mismatch port LID 0x%X Num:0x%X\n"
              "\t\t\t\tExpected q_key_violations 0x%X, received 0x%X\n",
              cl_ntoh16( p_rec->lid ), p_rec->port_num,
-             p_port->rec.port_info.q_key_violations,
-             p_rec->port_info.q_key_violations );
+             cl_ntoh16( p_port->rec.port_info.q_key_violations ),
+             cl_ntoh16( p_rec->port_info.q_key_violations ) );
     status = IB_ERROR;
     goto Exit;
   }







More information about the general mailing list