diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2015-12-07 16:02:33 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-08-01 00:25:37 -0400 |
commit | f3f564333bb8b32c3b9e1a476f8c4e1839815b78 (patch) | |
tree | 9b5b5ac42f340f08b4d479f6ae490d9915d84244 /import/hwpf | |
parent | b00c5492fed730eb30c2c6266497d12e5bb2aa52 (diff) | |
download | talos-sbe-f3f564333bb8b32c3b9e1a476f8c4e1839815b78.tar.gz talos-sbe-f3f564333bb8b32c3b9e1a476f8c4e1839815b78.zip |
Need an option to allow HWP to return an error log to platform code.
-Update ReturnCode object to include plat err pointer.
-Modify FFDC code to capture error log pointer
-Add FAPI_ASSERT_NO_EXIT macro
Change-Id: I6e0f8fa05b923dd2ad407a33b72cbe5569c3d520
Original-Change-Id: I9d69535416be9d09434766cc15f7db447a72aa60
RTC:13220
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22572
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Brian Silver <bsilver@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27629
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 | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/import/hwpf/fapi2/tools/parseErrorInfo.pl b/import/hwpf/fapi2/tools/parseErrorInfo.pl index e192f180..106bd1b3 100755 --- a/import/hwpf/fapi2/tools/parseErrorInfo.pl +++ b/import/hwpf/fapi2/tools/parseErrorInfo.pl @@ -8,7 +8,7 @@ # # EKB Project # -# COPYRIGHT 2015 +# COPYRIGHT 2015,2016 # [+] International Business Machines Corp. # # @@ -1183,16 +1183,40 @@ foreach my $argnum (0 .. $#ARGV) print ECFILE $methods{$key}{method}; } + # add a method to adjust the severity if desired + print ECFILE " inline void setSev(const fapi2::errlSeverity_t i_sev)\n" . + " { iv_sev = i_sev; };\n\n"; + + # add a method to read the severity if desired + print ECFILE " inline fapi2::errlSeverity_t getSev() const\n" . + " { return iv_sev; };\n\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 " void execute(fapi2::errlSeverity_t" . + " i_sev = fapi2::FAPI2_ERRL_SEV_UNDEFINED," . + "bool commit = true )\n"; if ($arg_empty_ffdc eq undef) { print ECFILE " {\n"; - print ECFILE " FAPI_SET_HWP_ERROR(iv_rc, $err->{rc});\n"; - print ECFILE " fapi2::logError(iv_rc, (i_sev == fapi2::FAPI2_ERRL_SEV_UNDEFINED) ? iv_sev : i_sev);\n"; - print ECFILE " }\n\n"; + print ECFILE " FAPI_SET_HWP_ERROR(iv_rc, $err->{rc});\n"; + print ECFILE " if( commit )\n"; + print ECFILE " {\n"; + print ECFILE " fapi2::logError(iv_rc, " . + "(i_sev == fapi2::FAPI2_ERRL_SEV_UNDEFINED)" . + " ? iv_sev : i_sev);\n"; + print ECFILE " }\n"; + print ECFILE " else\n"; + print ECFILE " {\n"; + print ECFILE " fapi2::createPlatLog(iv_rc, " . + "(i_sev == fapi2::FAPI2_ERRL_SEV_UNDEFINED)". + " ? iv_sev : i_sev);\n"; + print ECFILE " }\n\n"; + print ECFILE " }\n"; + } else { |