diff options
author | Matt K. Light <mklight@us.ibm.com> | 2016-01-21 10:22:22 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-02-22 10:00:55 -0600 |
commit | 657e7e523b5db3ef83ebbdfa5c88f815ebb132e2 (patch) | |
tree | b28fb611f4f6b8c70f1505b874c24561feedbaf4 /src/import/hwpf/fapi2/tools | |
parent | 359584e5b8283a6a0a20ccde86e778f536240e26 (diff) | |
download | talos-hostboot-657e7e523b5db3ef83ebbdfa5c88f815ebb132e2.tar.gz talos-hostboot-657e7e523b5db3ef83ebbdfa5c88f815ebb132e2.zip |
do not use iv_sev when executing with --empty-ffdc-classes
Change-Id: I4247483f489e586b577f3eca484a9ad70385c709
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23485
Dev-Ready: Matt K. Light <mklight@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Reviewed-by: Brent Wieman <bwieman@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/24526
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2/tools')
-rwxr-xr-x | src/import/hwpf/fapi2/tools/parseErrorInfo.pl | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/src/import/hwpf/fapi2/tools/parseErrorInfo.pl b/src/import/hwpf/fapi2/tools/parseErrorInfo.pl index 106bd1b3a..61a626673 100755 --- a/src/import/hwpf/fapi2/tools/parseErrorInfo.pl +++ b/src/import/hwpf/fapi2/tools/parseErrorInfo.pl @@ -1184,12 +1184,26 @@ foreach my $argnum (0 .. $#ARGV) } # 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"; + print ECFILE " inline void setSev(const fapi2::errlSeverity_t i_sev)\n"; + if ($arg_empty_ffdc eq undef) + { + print ECFILE " { iv_sev = i_sev; };\n\n"; + } + else + { + print ECFILE " { static_cast<void>(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"; + print ECFILE " inline fapi2::errlSeverity_t getSev() const\n"; + if ($arg_empty_ffdc eq undef) + { + print ECFILE " { return iv_sev; };\n\n"; + } + else + { + print ECFILE " { return fapi2::FAPI2_ERRL_SEV_UNDEFINED; };\n\n"; + } # |