[ofa-general] Re: [PATCH] infiniband-diags/scripts/ibprintswitch.pl: fix regex when searching for switch by name
Sasha Khapyorsky
sashak at voltaire.com
Sat Jan 19 10:55:47 PST 2008
Hi Ira,
On 16:37 Fri 18 Jan , Ira Weiny wrote:
> 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.*/)
When the original regex will not work?
Sasha
More information about the general
mailing list