summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/StatusCodeHandler/Smm
diff options
context:
space:
mode:
authorLi, Elvin <elvin.li@intel.com>2014-07-28 01:59:02 +0000
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>2014-07-28 01:59:02 +0000
commit5d0f0ac4808b2ad7595f209e29ddfa7c8d8edb3a (patch)
tree5812b50a2672eced9cef1f785314ac5b193e6d99 /MdeModulePkg/Universal/StatusCodeHandler/Smm
parent324c886410487f77e8643f6319f6cf751c65062b (diff)
downloadedk2-5d0f0ac4808b2ad7595f209e29ddfa7c8d8edb3a.tar.gz
edk2-5d0f0ac4808b2ad7595f209e29ddfa7c8d8edb3a.tar.bz2
edk2-5d0f0ac4808b2ad7595f209e29ddfa7c8d8edb3a.zip
Print the CodeType and Value of status code with fixed length.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Li, Elvin <elvin.li@intel.com> Reviewed-by: Gao, Liming <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15687 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/StatusCodeHandler/Smm')
-rw-r--r--MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c8
1 files changed, 4 insertions, 4 deletions
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.<BR>
+ Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
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