[ofa-general] [PATCH 3/3] opensm/osmtest: adopt to osm_vendor_get_all_port_attr() changes

Sasha Khapyorsky sashak at voltaire.com
Thu Nov 15 01:12:09 PST 2007


Count ports from 0 - there is no duplicated records anymore.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/osmtest/main.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/opensm/osmtest/main.c b/opensm/osmtest/main.c
index d95d5c8..1c9004b 100644
--- a/opensm/osmtest/main.c
+++ b/opensm/osmtest/main.c
@@ -235,10 +235,9 @@ static void print_all_guids(IN osmtest_t * p_osmt)
 	}
 
 	printf("\nListing GUIDs:\n");
-	for (i = 1; i < num_ports; i++) {	/* excluding logical mgmt port */
+	for (i = 0; i < num_ports; i++)
 		printf("Port %i: 0x%" PRIx64 "\n", i,
 		       cl_hton64(attr_array[i].port_guid));
-	}
 }
 
 /**********************************************************************
-- 
1.5.3.rc2.29.gc4640f




More information about the general mailing list