Revision: 15687
          http://sourceforge.net/p/edk2/code/15687
Author:   li-elvin
Date:     2014-07-28 01:59:02 +0000 (Mon, 28 Jul 2014)
Log Message:
-----------
Print the CodeType and Value of status code with fixed length.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Li, Elvin <elvin...@intel.com>
Reviewed-by: Gao, Liming <liming....@intel.com>

Modified Paths:
--------------
    
trunk/edk2/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c
    
trunk/edk2/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c
    
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c
    
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c
    
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c

Modified: 
trunk/edk2/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c
===================================================================
--- 
trunk/edk2/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c
        2014-07-25 21:10:33 UTC (rev 15686)
+++ 
trunk/edk2/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c
        2014-07-28 01:59:02 UTC (rev 15687)
@@ -1,7 +1,7 @@
 /** @file
   Serial I/O status code reporting worker.
 
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2006 - 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
@@ -86,7 +86,7 @@
     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 @@
     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 @@
     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

Modified: 
trunk/edk2/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c
===================================================================
--- 
trunk/edk2/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c
 2014-07-25 21:10:33 UTC (rev 15686)
+++ 
trunk/edk2/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c
 2014-07-28 01:59:02 UTC (rev 15687)
@@ -1,7 +1,7 @@
 /** @file
   Serial I/O status code reporting worker.
 
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2006 - 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        
@@ -84,7 +84,7 @@
     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 @@
     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 @@
     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

Modified: 
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c
===================================================================
--- 
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c
    2014-07-25 21:10:33 UTC (rev 15686)
+++ 
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/Pei/SerialStatusCodeWorker.c
    2014-07-28 01:59:02 UTC (rev 15687)
@@ -1,7 +1,7 @@
 /** @file
   Serial I/O status code reporting worker.
 
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2006 - 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
@@ -89,7 +89,7 @@
     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 @@
     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 @@
     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

Modified: 
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c
===================================================================
--- 
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c
     2014-07-25 21:10:33 UTC (rev 15686)
+++ 
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/SerialStatusCodeWorker.c
     2014-07-28 01:59:02 UTC (rev 15687)
@@ -1,7 +1,7 @@
 /** @file
   Serial I/O status code reporting worker.
 
-  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2006 - 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 @@
     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 @@
     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 @@
     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

Modified: 
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c
===================================================================
--- 
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c
    2014-07-25 21:10:33 UTC (rev 15686)
+++ 
trunk/edk2/MdeModulePkg/Universal/StatusCodeHandler/Smm/SerialStatusCodeWorker.c
    2014-07-28 01:59:02 UTC (rev 15687)
@@ -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 @@
     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 @@
     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 @@
     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

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to