summaryrefslogtreecommitdiffstats
path: root/src/usr/errl/parser
diff options
context:
space:
mode:
authorTerry J. Opie <opiet@us.ibm.com>2011-10-27 12:48:46 -0500
committerTerry J. Opie <opiet@us.ibm.com>2011-12-01 15:47:22 -0600
commitdddd1ef3658b3a3a846ec64c3e6ba9ba1f7b746e (patch)
tree3cad9b232c35e09596f862fc301788a7a4b71339 /src/usr/errl/parser
parent4a353d7840f632640e78cafc7052e2e5a99ad564 (diff)
downloadtalos-hostboot-dddd1ef3658b3a3a846ec64c3e6ba9ba1f7b746e.tar.gz
talos-hostboot-dddd1ef3658b3a3a846ec64c3e6ba9ba1f7b746e.zip
I2C Bad Machine Path and Cxx Testcases as well as the EEPROM device driver.
Change-Id: Ia89d3aecb3192a2f99ef9fbb5abe0ce1d528a481 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/506 Tested-by: Jenkins Server Reviewed-by: Terry J. Opie <opiet@us.ibm.com>
Diffstat (limited to 'src/usr/errl/parser')
-rwxr-xr-xsrc/usr/errl/parser/scanforsrcs.pl29
1 files changed, 5 insertions, 24 deletions
diff --git a/src/usr/errl/parser/scanforsrcs.pl b/src/usr/errl/parser/scanforsrcs.pl
index c54df9fb1..d6d594a18 100755
--- a/src/usr/errl/parser/scanforsrcs.pl
+++ b/src/usr/errl/parser/scanforsrcs.pl
@@ -373,7 +373,6 @@ sub getFiles
opendir(DH, $l_input_dir) or die("Cannot open $l_input_dir: $!");
# skip the dots
@dir_entry = grep { !/^\./ } readdir(DH);
- #@dir_entry = readdir(DH);
closedir(DH);
while (@dir_entry)
{
@@ -382,12 +381,6 @@ sub getFiles
debugMsg( "getFiles: Full Path: $full_path" );
-# if ($full_path =~ /\/$comp\/test/g) # skip the test dirs
-# {
-# debugMsg( "Found test dir - next!!" );
-# next;
-# }
-# elsif ($l_entry =~ /\.[H|C]$/)
if ($l_entry =~ /\.[H|C]$/)
{
$l_input_files{$l_entry} = $full_path;
@@ -466,18 +459,6 @@ sub includeReasonCodes
{
debugMsg( "includeReasonCodes file: $file" );
my @allDirs = split( '/', $file );
-# $tmpParent = pop @allDirs;
-
-# if( $parentDir ne "" )
-# {
-# $parentDir = $parentDir."/$tmpParent";
-# }
-# else
-# {
-# $parentDir = $tmpParent;
-# }
-# debugMsg( "includeReasonCodes parent dir: $parentDir" );
-# debugMsg( "includeReasonCodes tmpparent: $tmpParent" );
if( $file =~ m/reasoncodes/i )
{
@@ -498,10 +479,13 @@ sub includeReasonCodes
debugMsg( "Include string: $incFileName" );
print $fh "#include <$incFileName>\n";
-# print $fh "#include <$parentDir>\n";
# Find the namespace of the reason codes
- findNameSpace( $file )
+ findNameSpace( $file );
+
+ # Clear out incFileName, in case there are 2 reason code files
+ # in the same directory
+ $incFileName = "";
}
elsif( -d $file )
{
@@ -509,9 +493,6 @@ sub includeReasonCodes
# Recursion is done here.
includeReasonCodes( $fh, $file."/*", ($level+1) );
}
-
-# $parentDir = "";
-# $tmpParent = "";
}
}
OpenPOWER on IntegriCloud