[openib-general] [PATCH][MINOR] OpenSM/osm_inform.c: n __dump_all_informs, don't scan inform list unless logging has the debug level turned on
Hal Rosenstock
halr at voltaire.com
Thu Jun 29 04:10:53 PDT 2006
OpenSM/osm_inform.c: In __dump_all_informs, don't scan inform list
unless logging has the debug level turned on
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: opensm/osm_inform.c
===================================================================
--- opensm/osm_inform.c (revision 8274)
+++ opensm/osm_inform.c (working copy)
@@ -179,6 +179,9 @@ __dump_all_informs(
OSM_LOG_ENTER( p_log, __dump_all_informs );
+ if( ! osm_log_is_active( p_log, OSM_LOG_DEBUG ) )
+ goto Exit;
+
p_list_item = cl_qlist_head( &p_subn->sa_infr_list );
while (p_list_item != cl_qlist_end( &p_subn->sa_infr_list ))
{
@@ -188,6 +191,7 @@ __dump_all_informs(
p_list_item = cl_qlist_next( p_list_item );
}
+ Exit:
OSM_LOG_EXIT( p_log );
}
More information about the general
mailing list