From df5dbe937e0222e452a35af523264067afb6f4dd Mon Sep 17 00:00:00 2001 From: Brian Silver Date: Wed, 1 Apr 2015 12:34:46 -0500 Subject: FFDC collection for buffers, exectue() takes a sev parameter Change-Id: I7ee62958df3c5167237b83bc2bfc0fd235351dc8 Original-Change-Id: Iffb9539211b57cf371432ae6a4468577b5a91aad Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16818 Reviewed-by: PRACHI GUPTA Reviewed-by: Thi N. Tran Reviewed-by: Brian Silver Tested-by: Brian Silver Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27625 Tested-by: Jenkins Server Reviewed-by: Sachin Gupta --- import/hwpf/fapi2/tools/parseErrorInfo.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'import/hwpf') diff --git a/import/hwpf/fapi2/tools/parseErrorInfo.pl b/import/hwpf/fapi2/tools/parseErrorInfo.pl index f4a0107b..e394a17e 100755 --- a/import/hwpf/fapi2/tools/parseErrorInfo.pl +++ b/import/hwpf/fapi2/tools/parseErrorInfo.pl @@ -1184,11 +1184,13 @@ foreach my $argnum (0 .. $#ARGV) print ECFILE $methods{$key}{method}; } - # Stick the execute method at the end of the other methods. - print ECFILE " void execute(void)\n"; + # Stick the execute method at the end of the other methods. We allow + # passing in of the severity so that macros which call execute() can over-ride + # the default severity. + print ECFILE " void execute(fapi2::errlSeverity_t i_sev = fapi2::FAPI2_ERRL_SEV_UNDEFINED)\n"; print ECFILE " {\n"; print ECFILE " FAPI_SET_HWP_ERROR(iv_rc, $err->{rc});\n" if ($arg_empty_ffdc eq undef); - print ECFILE " fapi2::logError(iv_rc, iv_sev);\n" if ($arg_empty_ffdc eq undef); + print ECFILE " fapi2::logError(iv_rc, (i_sev == fapi2::FAPI2_ERRL_SEV_UNDEFINED) ? iv_sev : i_sev);\n" if ($arg_empty_ffdc eq undef); print ECFILE " }\n\n"; # Instance variables -- cgit v1.2.1