[ofa-general] [PATCH] opensm/osm_ucast_ftree.c: fix full topology dump

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Thu Jan 29 07:35:42 PST 2009


Sasha,

Full topology dump was missing leaf switches - fixing.

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_ucast_ftree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opensm/opensm/osm_ucast_ftree.c b/opensm/opensm/osm_ucast_ftree.c
index ebe6612..68900d8 100644
--- a/opensm/opensm/osm_ucast_ftree.c
+++ b/opensm/opensm/osm_ucast_ftree.c
@@ -1103,7 +1103,7 @@ static void __osm_ftree_fabric_dump(ftree_fabric_t * p_ftree)
 		__osm_ftree_hca_dump(p_ftree, p_hca);
 	}

-	for (i = 0; i < p_ftree->max_switch_rank; i++) {
+	for (i = 0; i <= p_ftree->max_switch_rank; i++) {
 		OSM_LOG(&p_ftree->p_osm->log, OSM_LOG_DEBUG,
 			"-- Rank %u switches\n", i);
 		for (p_sw = (ftree_sw_t *) cl_qmap_head(&p_ftree->sw_tbl);
-- 
1.5.1.4





More information about the general mailing list