From: Ira Weiny <[email protected]>
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 <[email protected]>
---
 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

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to