diff options
author | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-07-30 05:38:39 +0000 |
---|---|---|
committer | xli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-07-30 05:38:39 +0000 |
commit | 5d4a0dbc91d4e25002a2c35a3b9b5c3edfb284c2 (patch) | |
tree | af189068296d5839bf7ca5323dc01602b93c401c /IntelFrameworkModulePkg/Universal/StatusCode/Pei | |
parent | 96a2516355feae4bf10009fe28722c689af7a3e6 (diff) | |
download | edk2-platforms-5d4a0dbc91d4e25002a2c35a3b9b5c3edfb284c2.tar.xz |
Handle gEfiStatusCodeDataTypeStringGuid in status code drivers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10717 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg/Universal/StatusCode/Pei')
-rw-r--r-- | IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c | 13 | ||||
-rw-r--r-- | IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf | 2 |
2 files changed, 13 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c index 59ad7a01d9..24afa1f2d2 100644 --- a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c +++ b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/SerialStatusCodeWorker.c @@ -1,7 +1,7 @@ /** @file
Serial I/O status code reporting worker.
- Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2010, 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
@@ -126,6 +126,17 @@ SerialStatusCodeReportWorker ( Value,
Instance
);
+ } else if (CompareGuid (&Data->Type, &gEfiStatusCodeDataTypeStringGuid) &&
+ ((EFI_STATUS_CODE_STRING_DATA *) Data)->StringType == EfiStringAscii) {
+ //
+ // EFI_STATUS_CODE_STRING_DATA
+ //
+ CharCount = AsciiSPrint (
+ Buffer,
+ sizeof (Buffer),
+ "%a\n\r",
+ ((EFI_STATUS_CODE_STRING_DATA *) Data)->String.Ascii
+ );
} else {
//
// Code type is not defined.
diff --git a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf index b29067d612..55163fae16 100644 --- a/IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf +++ b/IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf @@ -55,7 +55,7 @@ [Guids]
gMemoryStatusCodeRecordGuid ## SOMETIMES_CONSUMES ## HOB
-
+ gEfiStatusCodeDataTypeStringGuid ## CONSUMES
[Ppis]
gEfiPeiStatusCodePpiGuid ## PRODUCES
|