From 5d0f0ac4808b2ad7595f209e29ddfa7c8d8edb3a Mon Sep 17 00:00:00 2001 From: "Li, Elvin" Date: Mon, 28 Jul 2014 01:59:02 +0000 Subject: [PATCH] Print the CodeType and Value of status code with fixed length. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Li, Elvin Reviewed-by: Gao, Liming git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15687 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Universal/StatusCode/Pei/SerialStatusCodeWorker.c | 8 ++++---- .../StatusCode/RuntimeDxe/SerialStatusCodeWorker.c | 8 ++++---- .../StatusCodeHandler/Pei/SerialStatusCodeWorker.c | 8 ++++---- .../StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c | 8 ++++---- .../StatusCodeHandler/Smm/SerialStatusCodeWorker.c | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c index 943c4eba04..d62cb8f8c8 100644 --- a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c +++ b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c @@ -1,7 +1,7 @@ /** @file Serial I/O status code reporting worker. - Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -86,7 +86,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "ERROR: C%x:V%x I%x", + "ERROR: C%08x:V%08x I%x", CodeType, Value, Instance @@ -122,7 +122,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "PROGRESS CODE: V%x I%x\n\r", + "PROGRESS CODE: V%08x I%x\n\r", Value, Instance ); @@ -145,7 +145,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "Undefined: C%x:V%x I%x\n\r", + "Undefined: C%08x:V%08x I%x\n\r", CodeType, Value, Instance diff --git a/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c b/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c index c18cc8b80b..e1d02630e7 100644 --- a/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c +++ b/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c @@ -1,7 +1,7 @@ /** @file Serial I/O status code reporting worker. - Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -84,7 +84,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "ERROR: C%x:V%x I%x", + "ERROR: C%08x:V%08x I%x", CodeType, Value, Instance @@ -120,7 +120,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "PROGRESS CODE: V%x I%x\n\r", + "PROGRESS CODE: V%08x I%x\n\r", Value, Instance ); @@ -143,7 +143,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "Undefined: C%x:V%x I%x\n\r", + "Undefined: C%08x:V%08x I%x\n\r", CodeType, Value, Instance diff --git a/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c b/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c index 69da4446b1..1b891b307d 100644 --- a/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c +++ b/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c @@ -1,7 +1,7 @@ /** @file Serial I/O status code reporting worker. - Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -89,7 +89,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "ERROR: C%x:V%x I%x", + "ERROR: C%08x:V%08x I%x", CodeType, Value, Instance @@ -127,7 +127,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "PROGRESS CODE: V%x I%x\n\r", + "PROGRESS CODE: V%08x I%x\n\r", Value, Instance ); @@ -150,7 +150,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "Undefined: C%x:V%x I%x\n\r", + "Undefined: C%08x:V%08x I%x\n\r", CodeType, Value, Instance diff --git a/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c b/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c index a71704c680..45986fcae3 100644 --- a/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c +++ b/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c @@ -1,7 +1,7 @@ /** @file Serial I/O status code reporting worker. - Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -85,7 +85,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "ERROR: C%x:V%x I%x", + "ERROR: C%08x:V%08x I%x", CodeType, Value, Instance @@ -122,7 +122,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "PROGRESS CODE: V%x I%x\n\r", + "PROGRESS CODE: V%08x I%x\n\r", Value, Instance ); @@ -145,7 +145,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "Undefined: C%x:V%x I%x\n\r", + "Undefined: C%08x:V%08x I%x\n\r", CodeType, Value, Instance diff --git a/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c b/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c index b5f2befc35..8f2fbf4f7a 100644 --- a/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c +++ b/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c @@ -1,7 +1,7 @@ /** @file Serial I/O status code reporting worker. - Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -85,7 +85,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "ERROR: C%x:V%x I%x", + "ERROR: C%08x:V%08x I%x", CodeType, Value, Instance @@ -122,7 +122,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "PROGRESS CODE: V%x I%x\n\r", + "PROGRESS CODE: V%08x I%x\n\r", Value, Instance ); @@ -145,7 +145,7 @@ SerialStatusCodeReportWorker ( CharCount = AsciiSPrint ( Buffer, sizeof (Buffer), - "Undefined: C%x:V%x I%x\n\r", + "Undefined: C%08x:V%08x I%x\n\r", CodeType, Value, Instance -- 2.39.2