diff options
author | Brian Silver <bsilver@us.ibm.com> | 2015-04-01 12:34:46 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-08-01 00:24:52 -0400 |
commit | df5dbe937e0222e452a35af523264067afb6f4dd (patch) | |
tree | 6c490b8b72dcbf3119ce9d96a3c0a4626fdf6620 /import/hwpf | |
parent | 4d2e0cea5cc12eddb5a0b8a80270f2eace7a0f26 (diff) | |
download | talos-sbe-df5dbe937e0222e452a35af523264067afb6f4dd.tar.gz talos-sbe-df5dbe937e0222e452a35af523264067afb6f4dd.zip |
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 <pragupta@us.ibm.com>
Reviewed-by: Thi N. Tran <thi@us.ibm.com>
Reviewed-by: Brian Silver <bsilver@us.ibm.com>
Tested-by: Brian Silver <bsilver@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27625
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'import/hwpf')
-rwxr-xr-x | import/hwpf/fapi2/tools/parseErrorInfo.pl | 8 |
1 files changed, 5 insertions, 3 deletions
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 |