From f2794eed87ca9c35140c601dfcbb5baf299d834b Mon Sep 17 00:00:00 2001 From: Mike Jones Date: Fri, 28 Oct 2011 13:28:47 -0500 Subject: Fix error log tag and fix bug in tag perser Change-Id: Ic72e58d69769bbe3bf39dc3d8db16fdb2409711a Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/466 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning Reviewed-by: Andrew J. Geissler --- src/usr/errl/parser/scanforsrcs.pl | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/usr/errl') diff --git a/src/usr/errl/parser/scanforsrcs.pl b/src/usr/errl/parser/scanforsrcs.pl index 3368b329d..83fbfed5a 100755 --- a/src/usr/errl/parser/scanforsrcs.pl +++ b/src/usr/errl/parser/scanforsrcs.pl @@ -299,7 +299,6 @@ sub extractTags my $data; my ($file, $comp) = @_; debugMsg( "extractTags: Component: $comp" ); - my $found = 0; local *FH; debugMsg( "Processing: $file" ); @@ -326,12 +325,6 @@ sub extractTags { debugMsg( "Found New Error Tag!" ); - if( !$found ) - { - findNameSpace( $file ) - } - - $found = 1; my $text = $1; debugMsg( "Text1: $text" ); my %hash = $text =~ /\@(\S+)(?:\s+|\.+)\b(.+?)$/gm; @@ -506,6 +499,9 @@ sub includeReasonCodes print $fh "#include <$incFileName>\n"; # print $fh "#include <$parentDir>\n"; + + # Find the namespace of the reason codes + findNameSpace( $file ) } elsif( -d $file ) { @@ -566,10 +562,6 @@ EOF print $fh "using namespace $namespace;\n" } - # VFS namespace is defined in header file with no errors, so we didn't - # find it... - print $fh "using namespace VFS;\n"; - print $fh <