diff options
Diffstat (limited to 'src/usr/secureboot/trusted/trustedbootUtils.C')
| -rw-r--r-- | src/usr/secureboot/trusted/trustedbootUtils.C | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/src/usr/secureboot/trusted/trustedbootUtils.C b/src/usr/secureboot/trusted/trustedbootUtils.C index 62f1c8d74..1fbe394a2 100644 --- a/src/usr/secureboot/trusted/trustedbootUtils.C +++ b/src/usr/secureboot/trusted/trustedbootUtils.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2017 */ +/* Contributors Listed Below - COPYRIGHT 2015,2018 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -81,20 +81,26 @@ errlHndl_t tpmTransmit(TpmTarget * io_target, return err; } -errlHndl_t tpmCreateErrorLog(const uint8_t i_modId, - const uint16_t i_reasonCode, - const uint64_t i_user1, - const uint64_t i_user2) +errlHndl_t tpmCreateErrorLog( + const uint8_t i_modId, + const uint16_t i_reasonCode, + const uint64_t i_user1, + const uint64_t i_user2, + const bool i_addSwCallout) { - errlHndl_t err = new ERRORLOG::ErrlEntry( ERRORLOG::ERRL_SEV_UNRECOVERABLE, - i_modId, - i_reasonCode, - i_user1, - i_user2, - true /*Add HB SW Callout*/ ); - err->collectTrace( SECURE_COMP_NAME ); - err->collectTrace(TRBOOT_COMP_NAME); - return err; + errlHndl_t pError = + new ERRORLOG::ErrlEntry( + ERRORLOG::ERRL_SEV_UNRECOVERABLE, + i_modId, + i_reasonCode, + i_user1, + i_user2, + i_addSwCallout); + + pError->collectTrace(SECURE_COMP_NAME); + pError->collectTrace(TRBOOT_COMP_NAME); + + return pError; } } // end TRUSTEDBOOT |

