]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Print the CodeType and Value of status code with fixed length.
authorLi, Elvin <elvin.li@intel.com>
Mon, 28 Jul 2014 01:59:02 +0000 (01:59 +0000)
committerli-elvin <li-elvin@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 28 Jul 2014 01:59:02 +0000 (01:59 +0000)
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

IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c
IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c
MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c
MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c
MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c

index 943c4eba04ce3895bfcbc0d9f0b64ef432f6bac0..d62cb8f8c8502e495fc93fe7dd4dcac095bb13fa 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Serial I/O status code reporting worker.\r
 \r
-  Copyright (c) 2006 - 2010, 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
@@ -86,7 +86,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
index c18cc8b80b2b5eb8b1f472b6dae0c6f726d2d231..e1d02630e7bc2799dda5d3e71b38d0b36db67f08 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Serial I/O status code reporting worker.\r
 \r
-  Copyright (c) 2006 - 2010, 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
@@ -84,7 +84,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
@@ -120,7 +120,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
@@ -143,7 +143,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
index 69da4446b11eafee1f58898fd871d869811abf6c..1b891b307dbbf93bdf10b6b9ae027fbf664fa4b5 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
@@ -89,7 +89,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
@@ -127,7 +127,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
@@ -150,7 +150,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
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
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