Handle gEfiStatusCodeDataTypeStringGuid in status code handler drivers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10716 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -129,6 +129,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.
|
||||
|
@@ -30,6 +30,7 @@
|
||||
#include <Library/PcdLib.h>
|
||||
#include <Library/PeiServicesLib.h>
|
||||
#include <Library/PeimEntryPoint.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
|
||||
/**
|
||||
Convert status code value and extended data to readable ASCII string, send string to serial I/O device.
|
||||
|
@@ -46,10 +46,12 @@
|
||||
ReportStatusCodeLib
|
||||
PrintLib
|
||||
DebugLib
|
||||
|
||||
BaseMemoryLib
|
||||
|
||||
[Guids]
|
||||
gMemoryStatusCodeRecordGuid ## SOMETIMES_CONSUMES ## HOB
|
||||
|
||||
gEfiStatusCodeDataTypeStringGuid ## CONSUMES
|
||||
|
||||
[Ppis]
|
||||
gEfiPeiRscHandlerPpiGuid ## CONSUMES
|
||||
|
||||
|
Reference in New Issue
Block a user