From: thantry Date: Tue, 29 Apr 2003 03:56:41 +0000 (+0000) Subject: Obvious issue with parser in the absence of the start and X-Git-Tag: v1_7_110~2^11~138 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=8f8efb89259311d414cfd2ff428d4aaa7fb25533;p=fs%2Flustre-release.git Obvious issue with parser in the absence of the start and the end line switch. Fixed the same. --- diff --git a/lustre/utils/llparser.pm b/lustre/utils/llparser.pm index 800dbe5..7acc83a6 100644 --- a/lustre/utils/llparser.pm +++ b/lustre/utils/llparser.pm @@ -639,7 +639,7 @@ sub parse_file $linecnt++; my @parsed_line = get_parsed_line($file, $linecnt, $_, $sline); next if ($#parsed_line == 0); - last if ($linecnt > $eline); + last if ($eline && ($linecnt > $eline)); next if (ignore_conditions(\@parsed_line, $pid, $rpctrace, $trace, $nodlm, $noclass, $nonet)); @@ -1003,7 +1003,7 @@ sub get_parsed_line() my $linecnt = shift; my $in_line = shift; my $sline = shift; - if ($linecnt < $sline) { + if (($sline) && ($linecnt < $sline)) { return 0; } if ($in_line =~ /$REGEX/) {