From 78db12452b19b1ff6416c71c6eefddc49419bfcf Mon Sep 17 00:00:00 2001 From: Mike Jones Date: Wed, 29 Jan 2014 10:10:21 -0600 Subject: Istep error PLID should match EID of the first real error Change-Id: Ibfe0a2b2b3b27955bcc65dd593ca1a7fc6c2d76a RTC: 94663 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8424 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton Reviewed-by: WILLIAM G. HOFFA Reviewed-by: Andrew J. Geissler Reviewed-by: A. Patrick Williams III --- src/usr/hwpf/hwp/hwpisteperror.C | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/usr/hwpf/hwp/hwpisteperror.C') diff --git a/src/usr/hwpf/hwp/hwpisteperror.C b/src/usr/hwpf/hwp/hwpisteperror.C index fd6fa648c..72ec16882 100644 --- a/src/usr/hwpf/hwp/hwpisteperror.C +++ b/src/usr/hwpf/hwp/hwpisteperror.C @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2012,2013 */ +/* COPYRIGHT International Business Machines Corp. 2012,2014 */ /* */ /* p1 */ /* */ @@ -64,23 +64,25 @@ void IStepError::addErrorDetails( const errlHndl_t i_err ) * for reason. * */ - iv_eHandle = new ERRORLOG::ErrlEntry(ERRORLOG::ERRL_SEV_UNRECOVERABLE, ISTEP_REPORTING_ERROR, ISTEP_FAILURE, data1, data2); + + // Set the PLID of this istep elog to match the first error + iv_eHandle->plid(i_err->plid()); } - else // just increment error count + else { // retrieve iStep and subStep uint32_t l_iStepSubStep = (iv_eHandle->getUserData2() & 0xFFFFFFFF); // update the error count and keep iStep/subStep in user data word 1 uint64_t l_data2 = TWO_UINT32_TO_UINT64 (iv_errorCount,l_iStepSubStep); iv_eHandle->addUserData2(l_data2); - } - // set the plid of the input elog to match the istep elog - i_err->plid( iv_eHandle->plid() ); + // set the plid of the input elog to match the first and istep elog + i_err->plid( iv_eHandle->plid() ); + } // grab the istep's trace and add to the input elog i_err->collectTrace("ISTEPS_TRACE", 1024); -- cgit v1.2.1