]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c
Print the CodeType and Value of status code with fixed length.
[mirror_edk2.git] / MdeModulePkg / Universal / StatusCodeHandler / Smm / SerialStatusCodeWorker.c
index b5f2befc35342b8542bd34c432c6db3426129359..8f2fbf4f7a4219bd26b7b41fd4d73b4403f3e406 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Serial I/O status code reporting worker.\r
 \r
-  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
@@ -85,7 +85,7 @@ SerialStatusCodeReportWorker (
     CharCount = AsciiSPrint (\r
                   Buffer, \r
                   sizeof (Buffer), \r
-                  "ERROR: C%x:V%x I%x", \r
+                  "ERROR: C%08x:V%08x I%x", \r
                   CodeType, \r
                   Value, \r
                   Instance\r
@@ -122,7 +122,7 @@ SerialStatusCodeReportWorker (
     CharCount = AsciiSPrint (\r
                   Buffer, \r
                   sizeof (Buffer), \r
-                  "PROGRESS CODE: V%x I%x\n\r", \r
+                  "PROGRESS CODE: V%08x I%x\n\r", \r
                   Value, \r
                   Instance\r
                   );\r
@@ -145,7 +145,7 @@ SerialStatusCodeReportWorker (
     CharCount = AsciiSPrint (\r
                   Buffer, \r
                   sizeof (Buffer), \r
-                  "Undefined: C%x:V%x I%x\n\r", \r
+                  "Undefined: C%08x:V%08x I%x\n\r", \r
                   CodeType, \r
                   Value, \r
                   Instance\r