diff options
author | Adam Muhle <armuhle@us.ibm.com> | 2013-01-23 08:53:04 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-02-04 13:24:10 -0600 |
commit | 6ba9a7790919fc430ddf1539579fdb4e9e7bba0d (patch) | |
tree | 488d0567844c4904110873531d833a0c5398fb33 /src/usr/errl/parser/errlparser.C | |
parent | 68286500750647b14ec5cbbe0253bafef2fdf341 (diff) | |
download | talos-hostboot-6ba9a7790919fc430ddf1539579fdb4e9e7bba0d.tar.gz talos-hostboot-6ba9a7790919fc430ddf1539579fdb4e9e7bba0d.zip |
Triggering Hostboot Shutdown when PNOR is bad
Updating the doShutdown path to support receiving a reason
code as input. Then changing PNOR RP to issue a shutdown
when problems are detected with the PNOR Partition table.
RTC: 44146
Change-Id: Ib4111d0a91f53d90fa100422a1463539897598e6
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3024
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/errl/parser/errlparser.C')
-rw-r--r-- | src/usr/errl/parser/errlparser.C | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usr/errl/parser/errlparser.C b/src/usr/errl/parser/errlparser.C index 801da1635..71d71aab5 100644 --- a/src/usr/errl/parser/errlparser.C +++ b/src/usr/errl/parser/errlparser.C @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2012 */ +/* COPYRIGHT International Business Machines Corp. 2011,2013 */ /* */ /* p1 */ /* */ @@ -622,10 +622,10 @@ int main( int argc, char *argv[] ) } else { - int c = sscanf( argv[i], "%d", &ulLogId ); + int c = sscanf( argv[i], "%x", &ulLogId ); if( c != 1 ) { - fprintf( stdout, "Provide -d <decimal log ID>\n" ); + fprintf( stdout, "Provide -d <hex log ID>\n" ); exit( 2 ); } } @@ -893,7 +893,7 @@ int main( int argc, char *argv[] ) printf( "%s\n", szDivider ); fListHead = 1; } - printf( "%-16s %8d\n", + printf( "%-16s 0X%8X\n", FindComp(pPrivateHdr->sectionheader.compId), pPrivateHdr->eid ); } @@ -901,7 +901,7 @@ int main( int argc, char *argv[] ) { // Write the native PEL to a temporary file // for x86 errl tool to display. - sprintf( szTmpFilename, "/tmp/pel%d.bin", pPrivateHdr->eid ); + sprintf( szTmpFilename, "/tmp/pel%X.bin", pPrivateHdr->eid ); int fd = open( szTmpFilename, O_RDWR | O_CREAT , 0664 ); if( -1 == fd ) @@ -974,7 +974,7 @@ int main( int argc, char *argv[] ) if( fExtractPEL ) { // Write the native PEL to a temporary file for debug later. - sprintf( szTmpFilename, "%s/pel%d.bin", pszOutputDir, pPrivateHdr->eid ); + sprintf( szTmpFilename, "%s/pel%X.bin", pszOutputDir, pPrivateHdr->eid ); int fd = open( szTmpFilename, O_RDWR | O_CREAT , 0664 ); if( -1 == fd ) |