]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c
Print the CodeType and Value of status code with fixed length.
[mirror_edk2.git] / MdeModulePkg / Universal / StatusCodeHandler / RuntimeDxe / SerialStatusCodeWorker.c
index a71704c680858d0d38db089d45317ab8705b2776..45986fcae38adf23600608bca0ea5d36c14540b0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Serial I/O status code reporting worker.\r
 \r
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 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