From 19ea95dd89795a181a8511a9251b650b2f628381 Mon Sep 17 00:00:00 2001 From: Luke Mulkey Date: Thu, 2 Feb 2017 11:38:38 -0600 Subject: Eff_config, volt, freq for p9c Change-Id: I13fe2c0b91c0ae5b1c7ee37445775af566638c40 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35841 Reviewed-by: STEPHEN GLANCY Tested-by: Jenkins Server Reviewed-by: ANDRE A. MARIN Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35947 Tested-by: FSP CI Jenkins Reviewed-by: Sachin Gupta --- src/import/hwpf/fapi2/tools/parseErrorInfo.pl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/import/hwpf/fapi2') diff --git a/src/import/hwpf/fapi2/tools/parseErrorInfo.pl b/src/import/hwpf/fapi2/tools/parseErrorInfo.pl index b511968f..176f128b 100755 --- a/src/import/hwpf/fapi2/tools/parseErrorInfo.pl +++ b/src/import/hwpf/fapi2/tools/parseErrorInfo.pl @@ -64,7 +64,7 @@ my $buffer_ffdc_type = "fapi2::buffer"; my $variable_buffer_ffdc_type = "fapi2::variable_buffer"; my $ffdc_type = "fapi2::ffdc_t"; my $mcast_type = "fapi2::mcast_t"; -my $ffdc_count = 0; +my $ffdc_count = 0; # There are some names used in the XML files which exist in either # c++ keywords (case, for example) or macros (DOMAIN). The one's which @@ -312,8 +312,9 @@ sub addFfdcMethod $method_body .= " fapi2::g_FfdcData.ffdcData[$objectNumber].size ="; $method_body .= " fapi2::getErrorInfoFfdcSize(i_value);\n"; $method_body .= " return *this;\n };\n\n"; + # ffdc_count is used to determine the maximum index written in sbe buffer - if( $objectNumber > $ffdc_count) + if ( $objectNumber > $ffdc_count ) { $ffdc_count = $objectNumber; } @@ -383,8 +384,9 @@ sub addFfdcMethod $method_body .= " fapi2::g_FfdcData.ffdcData[$objectNumber].size ="; $method_body .= " fapi2::getErrorInfoFfdcSize(i_value);\n"; $method_body .= " return *this;\n };\n\n"; + # ffdc_count is used to determine the maximum index written in sbe buffer - if( $objectNumber > $ffdc_count) + if ( $objectNumber > $ffdc_count ) { $ffdc_count = $objectNumber; } @@ -393,7 +395,7 @@ sub addFfdcMethod $method .= ( $arg_empty_ffdc eq undef ) ? $method_body : " {return *this;}\n\n"; $methods->{$key}{ffdc_count} = $ffdc_count; - $methods->{$key}{method} = $method; + $methods->{$key}{method} = $method; } #------------------------------------------------------------------------------ @@ -1480,12 +1482,14 @@ foreach my $argnum ( 0 .. $#ARGV ) { print ECFILE $methods{$key}{method}; $method_count++; + # count number of indices written in sbe buffer - if($methods{$key}{ffdc_count} > $count) + if ( $methods{$key}{ffdc_count} > $count ) { $count = $methods{$key}{ffdc_count}; } } + # Actual count is +1, as indices start from 0 $count += 1; if ( $arg_local_ffdc eq undef ) -- cgit v1.2.1