From 6945442c208de3aa90088e03c15f0cdad0dd4d3b Mon Sep 17 00:00:00 2001 From: Bill Schwartz Date: Mon, 28 Apr 2014 17:31:16 -0500 Subject: 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 --- src/usr/errl/errlentry.C | 3 ++- src/usr/initservice/baseinitsvc/initservice.C | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/usr') 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, -- cgit v1.2.1