[ofa-general] [PATCH] infiniband-diags/scripts/ibprintca.pl: fix regex when searching for node by name
Ira Weiny
weiny2 at llnl.gov
Fri Jan 18 16:37:22 PST 2008
>From 6a94e0a34428a067c125bcb11ed9f306e60c35c9 Mon Sep 17 00:00:00 2001
From: Ira K. Weiny <weiny2 at llnl.gov>
Date: Fri, 18 Jan 2008 16:24:37 -0800
Subject: [PATCH] infiniband-diags/scripts/ibprintca.pl: fix regex when searching for node by
name
Signed-off-by: Ira K. Weiny <weiny2 at llnl.gov>
---
infiniband-diags/scripts/ibprintca.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/infiniband-diags/scripts/ibprintca.pl b/infiniband-diags/scripts/ibprintca.pl
index 271b324..5b1e929 100755
--- a/infiniband-diags/scripts/ibprintca.pl
+++ b/infiniband-diags/scripts/ibprintca.pl
@@ -103,7 +103,7 @@ sub main
$in_hca = "no";
goto DONE;
}
- if ("0x$guid" eq $target_hca || $desc =~ /.*$target_hca$/)
+ if ("0x$guid" eq $target_hca || $desc =~ /.*$target_hca.*/)
{
print $line;
$in_hca = "yes";
--
1.5.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-infiniband-diags-scripts-ibprintca.pl-fix-regex-whe.patch
Type: application/octet-stream
Size: 916 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20080118/481eda8b/attachment.obj>
More information about the general
mailing list