[ofa-general] [PATCH] infiniband-diags/scripts/ibprintswitch.pl: fix regex when searching for switch by name
Ira Weiny
weiny2 at llnl.gov
Fri Jan 18 16:37:10 PST 2008
>From ac265e5c7130bf9a6b43ae2ed86ae342dbfe6bc0 Mon Sep 17 00:00:00 2001
From: Ira K. Weiny <weiny2 at llnl.gov>
Date: Fri, 18 Jan 2008 16:26:50 -0800
Subject: [PATCH] infiniband-diags/scripts/ibprintswitch.pl: fix regex when searching for switch
by name
Signed-off-by: Ira K. Weiny <weiny2 at llnl.gov>
---
infiniband-diags/scripts/ibprintswitch.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/infiniband-diags/scripts/ibprintswitch.pl b/infiniband-diags/scripts/ibprintswitch.pl
index d28a839..23a39b5 100755
--- a/infiniband-diags/scripts/ibprintswitch.pl
+++ b/infiniband-diags/scripts/ibprintswitch.pl
@@ -104,7 +104,7 @@ sub main
print $ports{$port};
}
}
- if ("0x$guid" eq $target_switch || $desc =~ /.*$target_switch\s+.*/)
+ if ("0x$guid" eq $target_switch || $desc =~ /.*$target_switch.*/)
{
print $line;
$in_switch = "yes";
--
1.5.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-infiniband-diags-scripts-ibprintswitch.pl-fix-regex.patch
Type: application/octet-stream
Size: 960 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20080118/8bbe8ca3/attachment.obj>
More information about the general
mailing list