summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorBill Schwartz <whs@us.ibm.com>2014-04-28 17:31:16 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2014-05-08 16:49:28 -0500
commit6945442c208de3aa90088e03c15f0cdad0dd4d3b (patch)
treeaffd5a2689a354c77d63a3f23545e6330168ac2e /src/usr
parent9b5488b6355fe0c23d83ded9b7524e002b6d3111 (diff)
downloadtalos-hostboot-6945442c208de3aa90088e03c15f0cdad0dd4d3b.tar.gz
talos-hostboot-6945442c208de3aa90088e03c15f0cdad0dd4d3b.zip
Provide mechanism to make an error log severity "final"
Add a set sev method that sets the severity as final. Set the errors identified in SW249695 as "final". Change-Id: I4fc00e075ecdbfcfb2f9f6d8b64c05e2de754f2f RTC: 105536 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/10819 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/errl/errlentry.C3
-rw-r--r--src/usr/initservice/baseinitsvc/initservice.C6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/usr/errl/errlentry.C b/src/usr/errl/errlentry.C
index aa05d534a..ff6eab8f9 100644
--- a/src/usr/errl/errlentry.C
+++ b/src/usr/errl/errlentry.C
@@ -151,7 +151,8 @@ ErrlEntry::ErrlEntry(const errlSeverity_t i_sev,
// The SRC_ERR_INFO becomes part of the SRC; example, B1 in SRC B180xxxx
// iv_Src assigns the epubSubSystem_t; example, 80 in SRC B180xxxx
iv_Src( SRC_ERR_INFO, i_modId, i_reasonCode, i_user1, i_user2 ),
- iv_termState(TERM_STATE_UNKNOWN)
+ iv_termState(TERM_STATE_UNKNOWN),
+ iv_sevFinal(false)
{
TRACFCOMP( g_trac_errl, ERR_MRK"Error created : PLID=%.8X, RC=%.4X, Mod=%.2X, Userdata=%.16X %.16X", plid(), i_reasonCode, i_modId, i_user1, i_user2 );
// Collect the Backtrace and add it to the error log
diff --git a/src/usr/initservice/baseinitsvc/initservice.C b/src/usr/initservice/baseinitsvc/initservice.C
index 3a437b933..03bb011e4 100644
--- a/src/usr/initservice/baseinitsvc/initservice.C
+++ b/src/usr/initservice/baseinitsvc/initservice.C
@@ -273,7 +273,8 @@ errlHndl_t InitService::startTask(
if ((l_childsts == TASK_STATUS_CRASHED) &&
(NULL != l_childerrl))
{
- l_errl->setSev(ERRORLOG::ERRL_SEV_INFORMATIONAL);
+ l_errl->setSev(ERRORLOG::ERRL_SEV_INFORMATIONAL,
+ true); //set severity "final"
}
break;
} // endif tidretrc
@@ -404,7 +405,8 @@ errlHndl_t InitService::executeFn(
if ((l_childsts == TASK_STATUS_CRASHED) &&
(NULL != l_childerrl))
{
- l_errl->setSev(ERRORLOG::ERRL_SEV_INFORMATIONAL);
+ l_errl->setSev(ERRORLOG::ERRL_SEV_INFORMATIONAL,
+ true); //set severity "final"
}
TRACFCOMP(g_trac_initsvc,
OpenPOWER on IntegriCloud