for OSM_LOG_INFO the debug function vltable_print was called, which iterates in a nested loop over all LIDs and only prints stuff for OSM_LOG_DEBUG; therefor we move vltable_print into a separated if clause
Signed-off-by: Jens Domke <[email protected]> --- opensm/osm_ucast_dfsssp.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/opensm/osm_ucast_dfsssp.c b/opensm/osm_ucast_dfsssp.c index b82d8c8..32bc8f1 100644 --- a/opensm/osm_ucast_dfsssp.c +++ b/opensm/osm_ucast_dfsssp.c @@ -1940,10 +1940,13 @@ static int dfsssp_remove_deadlocks(dfsssp_context_t * dfsssp_ctx) goto ERROR; } /* else { no balancing } */ - if (OSM_LOG_IS_ACTIVE_V2(p_mgr->p_log, OSM_LOG_INFO)) { + + if (OSM_LOG_IS_ACTIVE_V2(p_mgr->p_log, OSM_LOG_DEBUG)) { OSM_LOG(p_mgr->p_log, OSM_LOG_DEBUG, "Virtual Lanes per src/dest combination after balancing:\n"); vltable_print(p_mgr, srcdest2vl_table); + } + if (OSM_LOG_IS_ACTIVE_V2(p_mgr->p_log, OSM_LOG_INFO)) { OSM_LOG(p_mgr->p_log, OSM_LOG_INFO, "Paths per VL (after balancing):\n"); for (i = 0; i < vl_avail; i++) -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
