[ofa-general] [PATCH][MINOR] OpenSM/osm_sa.c: Add osm_log error message when osm_sa_mad_ctrl_bind fails

Hal Rosenstock halr at voltaire.com
Wed Feb 28 05:42:00 PST 2007


OpenSM/osm_sa.c: Add osm_log error message when osm_sa_mad_ctrl_bind
fails

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

diff --git a/osm/opensm/osm_sa.c b/osm/opensm/osm_sa.c
index 42a38aa..d74d875 100644
--- a/osm/opensm/osm_sa.c
+++ b/osm/opensm/osm_sa.c
@@ -505,6 +505,16 @@ osm_sa_bind(
 
   status = osm_sa_mad_ctrl_bind( &p_sa->mad_ctrl, port_guid );
 
+  if( status != IB_SUCCESS )
+  {
+    osm_log( p_sa->p_log, OSM_LOG_ERROR,
+             "osm_sa_bind: ERR 4C03: "
+             "SA MAD Controller bind failed (%s)\n",
+             ib_get_err_str( status ) );
+    goto Exit;
+  }
+
+ Exit:
   OSM_LOG_EXIT( p_sa->p_log );
   return( status );
 }






More information about the general mailing list