summaryrefslogtreecommitdiffstats
path: root/src/usr/diag
diff options
context:
space:
mode:
authorPrem Shanker Jha <premjha2@in.ibm.com>2019-01-17 01:18:19 -0600
committerZane C. Shelley <zshelle@us.ibm.com>2019-02-04 09:54:36 -0600
commit5e78ec88125025938eac5fb104559348bd56f275 (patch)
treed9e29f54a98813bb1fe4d22add2470beacb4d938 /src/usr/diag
parentdbc69abae26a0cfc946c7319898ac6ac135a1373 (diff)
downloadtalos-hostboot-5e78ec88125025938eac5fb104559348bd56f275.tar.gz
talos-hostboot-5e78ec88125025938eac5fb104559348bd56f275.zip
PRD: Fixed handling PM malfunction error log plugin.
commit fixes printing of 64 bit register values in PM malfunction error log plugin. Change-Id: Ib4ba7351825d38cbf417020035426bf069b39813 CQ: SW454621 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70579 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71147 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/usr/diag')
-rw-r--r--src/usr/diag/prdf/common/plugins/prdfProcLogParse.C13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/usr/diag/prdf/common/plugins/prdfProcLogParse.C b/src/usr/diag/prdf/common/plugins/prdfProcLogParse.C
index 9ae13ca54..0ea625e22 100644
--- a/src/usr/diag/prdf/common/plugins/prdfProcLogParse.C
+++ b/src/usr/diag/prdf/common/plugins/prdfProcLogParse.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2014,2018 */
+/* Contributors Listed Below - COPYRIGHT 2014,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -87,6 +87,7 @@ enum BufLengths
{
BUF_LENGTH = 120,
LINE_LENGTH = 80,
+ UPPER_BYTE_POS = 10,
};
/**
@@ -349,6 +350,8 @@ uint32_t parseRegFfdc( ErrlUsrParser& i_parser, uint8_t* i_buf, uint32_t i_lengt
{
FfdcSummSubSectHdr* l_pSubSecHdr = (FfdcSummSubSectHdr*)i_buf;
uint64_t* l_secBufPtr = (uint64_t*)( i_buf + sizeof( FfdcSummSubSectHdr ) );
+ uint32_t l_tempWord = 0;
+ uint64_t l_tempDbWord = 0;
if( 0 == i_length )
{
@@ -407,14 +410,18 @@ uint32_t parseRegFfdc( ErrlUsrParser& i_parser, uint8_t* i_buf, uint32_t i_lengt
memset( l_lineStr, 0x00, BUF_LENGTH );
memset( l_hdrStr, 0x00, BUF_LENGTH );
snprintf( l_hdrStr, BUF_LENGTH, "%s", (*itRegList).c_str() );
+ l_tempDbWord = htobe64(*l_secBufPtr);
- if( INVALID_DATA == htobe64(*l_secBufPtr) )
+ if( INVALID_DATA == l_tempDbWord )
{
memcpy( l_lineStr, "--", BUF_LENGTH );
}
else
{
- snprintf( l_lineStr, BUF_LENGTH, "0x%016lx", htobe64(*l_secBufPtr) );
+ l_tempWord = (l_tempDbWord >> 32);
+ snprintf( l_lineStr, BUF_LENGTH, "0x%08x", l_tempWord );
+ l_tempWord = (uint32_t)l_tempDbWord;
+ snprintf( l_lineStr + UPPER_BYTE_POS, (BUF_LENGTH - UPPER_BYTE_POS), "%08x", l_tempWord );
}
i_parser.PrintString( l_hdrStr, l_lineStr );
OpenPOWER on IntegriCloud