[ofa-general] [PATCH] ibprintca.pl: fix corner case: print switch information for CA's found at the end of the cache file.

Ira Weiny weiny2 at llnl.gov
Wed Jun 24 18:04:08 PDT 2009


From: Ira Weiny <weiny2 at hyperion1.llnl.gov>
Date: Tue, 23 Jun 2009 13:29:19 -0700
Subject: [PATCH] ibprintca.pl: fix corner case: print switch information for CA's found at the end of the cache file.


Signed-off-by: Ira Weiny <weiny2 at llnl.gov>
---
 infiniband-diags/scripts/ibprintca.pl |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/infiniband-diags/scripts/ibprintca.pl b/infiniband-diags/scripts/ibprintca.pl
index 3cac9b4..9832ac0 100755
--- a/infiniband-diags/scripts/ibprintca.pl
+++ b/infiniband-diags/scripts/ibprintca.pl
@@ -122,6 +122,13 @@ sub main
 		}
 
 	}
+
+	if ($in_hca eq "yes") {
+		foreach my $port (sort { $a <=> $b } (keys %ports)) {
+			print $ports{$port};
+		}
+	}
+
 	if ($found_hca == 0) {
 		die "\"$target_hca\" not found\n" .
 			"   Try running with the \"-R\" option.\n" .
-- 
1.5.4.5




More information about the general mailing list