[ofa-general] [PATCH] infiniband-diags/scripts/ibprintrt.pl: fix regex when searching for router by name

Ira Weiny weiny2 at llnl.gov
Fri Jan 18 16:37:18 PST 2008


>From efcac0f06884c15c9a3abf97dee99953d9c5112f Mon Sep 17 00:00:00 2001
From: Ira K. Weiny <weiny2 at llnl.gov>
Date: Fri, 18 Jan 2008 16:27:40 -0800
Subject: [PATCH] infiniband-diags/scripts/ibprintrt.pl: fix regex when searching for router by
name

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

diff --git a/infiniband-diags/scripts/ibprintrt.pl b/infiniband-diags/scripts/ibprintrt.pl
index 7f979e9..443cf9f 100755
--- a/infiniband-diags/scripts/ibprintrt.pl
+++ b/infiniband-diags/scripts/ibprintrt.pl
@@ -103,7 +103,7 @@ sub main
             $in_rt = "no";
             goto DONE;
          }
-         if ("0x$guid" eq $target_rt || $desc =~ /.*$target_rt$/)
+         if ("0x$guid" eq $target_rt || $desc =~ /.*$target_rt.*/)
          {
             print $line;
             $in_rt = "yes";
-- 
1.5.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-infiniband-diags-scripts-ibprintrt.pl-fix-regex-whe.patch
Type: application/octet-stream
Size: 912 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20080118/567f8426/attachment.obj>


More information about the general mailing list