]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Handle gEfiStatusCodeDataTypeStringGuid in status code drivers.
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 30 Jul 2010 05:38:39 +0000 (05:38 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 30 Jul 2010 05:38:39 +0000 (05:38 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10717 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c
IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/SerialStatusCodeWorker.c
IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf

index 59ad7a01d9eef1211076c20bf96eb8d0e96840f5..24afa1f2d28ceeff20b88af97b3f7444e4379e95 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Serial I/O status code reporting worker.\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2010, 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
@@ -126,6 +126,17 @@ SerialStatusCodeReportWorker (
                   Value,\r
                   Instance\r
                   );\r
+  } else if (CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&\r
+             ((EFI_STATUS_CODE_STRING_DATA *) Data)->StringType == EfiStringAscii) {\r
+    //\r
+    // EFI_STATUS_CODE_STRING_DATA\r
+    //\r
+    CharCount = AsciiSPrint (\r
+                  Buffer,\r
+                  sizeof (Buffer),\r
+                  "%a\n\r",\r
+                  ((EFI_STATUS_CODE_STRING_DATA *) Data)->String.Ascii\r
+                  );\r
   } else {\r
     //\r
     // Code type is not defined.\r
index b29067d61264ab6f6c46dc1c322ef9713ae105dd..55163fae16e7f068e2d353d356610c6565132beb 100644 (file)
@@ -55,7 +55,7 @@
 \r
 [Guids]\r
   gMemoryStatusCodeRecordGuid                   ## SOMETIMES_CONSUMES ## HOB\r
-\r
+  gEfiStatusCodeDataTypeStringGuid              ## CONSUMES\r
 \r
 [Ppis]\r
   gEfiPeiStatusCodePpiGuid                      ## PRODUCES\r
index 3f503687550450fa9e34456e65fd367bec639640..2bba8b64f5cbf8dbb37a52778474d335218b775d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Serial I/O status code reporting worker.\r
 \r
-  Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2010, 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
@@ -124,6 +124,17 @@ SerialStatusCodeReportWorker (
                   Value, \r
                   Instance\r
                   );\r
+  } else if (CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&\r
+             ((EFI_STATUS_CODE_STRING_DATA *) Data)->StringType == EfiStringAscii) {\r
+    //\r
+    // EFI_STATUS_CODE_STRING_DATA\r
+    //\r
+    CharCount = AsciiSPrint (\r
+                  Buffer,\r
+                  sizeof (Buffer),\r
+                  "%a\n\r",\r
+                  ((EFI_STATUS_CODE_STRING_DATA *) Data)->String.Ascii\r
+                  );\r
   } else {\r
     //\r
     // Code type is not defined.\r
index e1f42f4d3462df80ed0bcd7a2de8b6df61969b42..2ea015f8d9e0b45c86b718d90590be61e5d4333e 100644 (file)
@@ -66,7 +66,7 @@
   gEfiStatusCodeDataTypeDebugGuid               ## SOMETIMES_CONSUMES (Needed if Data Hub is supported for status code.)\r
   gMemoryStatusCodeRecordGuid                   ## CONSUMES ## HOB\r
   gEfiEventVirtualAddressChangeGuid             ## CONSUMES ## Event\r
-\r
+  gEfiStatusCodeDataTypeStringGuid              ## CONSUMES\r
 \r
 [Protocols]\r
   gEfiStatusCodeRuntimeProtocolGuid             ## PRODUCES\r