[openib-general] [PATCH] Opensm - fix error message

Yael Kalka yael at mellanox.co.il
Wed Feb 1 01:11:38 PST 2006


Hi Hal,

I saw that there is a problem with the printing of the error message
in __osm_pi_rcv_process_switch_port - the link state printed is the
state saved on the port, and not the state checked in the portInfo
received.
The attached patch fixes this.

Thanks,
Yael


Signed-off-by:  Yael Kalka <yael at mellanox.co.il>

Index: opensm/osm_port_info_rcv.c
===================================================================
--- opensm/osm_port_info_rcv.c  (revision 5204)
+++ opensm/osm_port_info_rcv.c  (working copy)
@@ -334,7 +334,7 @@ __osm_pi_rcv_process_switch_port(
       osm_log( p_rcv->p_log, OSM_LOG_ERROR,
                "__osm_pi_rcv_process_switch_port: ERR 0F03: "
                "Unknown link state = %u, port = 0x%X\n",
-               osm_physp_get_port_state( p_physp ),
+               ib_port_info_get_port_state( p_pi ),
                p_pi->local_port_num );
       break;
     }




More information about the general mailing list