1) Change the file name of StatusCode.h to DataHubStatusCodeRecord.h
2) Change gEfiStatusCodeGuid to gEfiDataHubStatusCodeRecordGuid git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3340 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -23,11 +23,11 @@ Abstract:
|
|||||||
#ifndef __STATUS_CODE_H__
|
#ifndef __STATUS_CODE_H__
|
||||||
#define __STATUS_CODE_H__
|
#define __STATUS_CODE_H__
|
||||||
|
|
||||||
#define EFI_STATUS_CODE_GUID \
|
#define EFI_DATA_HUB_STATUS_CODE_RECORD_GUID \
|
||||||
{ \
|
{ \
|
||||||
0xd083e94c, 0x6560, 0x42e4, {0xb6, 0xd4, 0x2d, 0xf7, 0x5a, 0xdf, 0x6a, 0x2a } \
|
0xd083e94c, 0x6560, 0x42e4, {0xb6, 0xd4, 0x2d, 0xf7, 0x5a, 0xdf, 0x6a, 0x2a } \
|
||||||
}
|
}
|
||||||
|
|
||||||
extern EFI_GUID gEfiStatusCodeGuid;
|
extern EFI_GUID gEfiDataHubStatusCodeRecordGuid;
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -56,10 +56,10 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
[Guids.common]
|
[Guids.common]
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid = { 0xD3705011, 0xBC19, 0x4af7, { 0xBE, 0x16, 0xF6, 0x80, 0x30, 0x37, 0x8C, 0x15 }}
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid = { 0xD3705011, 0xBC19, 0x4af7, { 0xBE, 0x16, 0xF6, 0x80, 0x30, 0x37, 0x8C, 0x15 }}
|
||||||
gEfiPciHotplugDeviceGuid = { 0x0B280816, 0x52E7, 0x4E51, { 0xAA, 0x57, 0x11, 0xBD, 0x41, 0xCB, 0xEF, 0xC3 }}
|
gEfiPciHotplugDeviceGuid = { 0x0B280816, 0x52E7, 0x4E51, { 0xAA, 0x57, 0x11, 0xBD, 0x41, 0xCB, 0xEF, 0xC3 }}
|
||||||
gEfiPciOptionRomTableGuid = { 0x7462660F, 0x1CBD, 0x48DA, { 0xAD, 0x11, 0x91, 0x71, 0x79, 0x13, 0x83, 0x1C }}
|
gEfiPciOptionRomTableGuid = { 0x7462660F, 0x1CBD, 0x48DA, { 0xAD, 0x11, 0x91, 0x71, 0x79, 0x13, 0x83, 0x1C }}
|
||||||
gEfiStatusCodeGuid = { 0xD083E94C, 0x6560, 0x42E4, { 0xB6, 0xD4, 0x2D, 0xF7, 0x5A, 0xDF, 0x6A, 0x2A }}
|
gEfiDataHubStatusCodeRecordGuid = { 0xD083E94C, 0x6560, 0x42E4, { 0xB6, 0xD4, 0x2D, 0xF7, 0x5A, 0xDF, 0x6A, 0x2A }}
|
||||||
gMemoryStatusCodeRecordGuid = { 0x060CC026, 0x4C0D, 0x4DDA, { 0x8F, 0x41, 0x59, 0x5F, 0xEF, 0x00, 0xA5, 0x02 }}
|
gMemoryStatusCodeRecordGuid = { 0x060CC026, 0x4C0D, 0x4DDA, { 0x8F, 0x41, 0x59, 0x5F, 0xEF, 0x00, 0xA5, 0x02 }}
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -28,7 +28,7 @@ Abstract:
|
|||||||
//
|
//
|
||||||
// The protocols, PPI and GUID defintions for this module
|
// The protocols, PPI and GUID defintions for this module
|
||||||
//
|
//
|
||||||
#include <Guid/StatusCode.h>
|
#include <Guid/DataHubStatusCodeRecord.h>
|
||||||
#include <Guid/StatusCodeDataTypeId.h>
|
#include <Guid/StatusCodeDataTypeId.h>
|
||||||
#include <Protocol/DataHub.h>
|
#include <Protocol/DataHub.h>
|
||||||
#include <Protocol/SimpleTextOut.h>
|
#include <Protocol/SimpleTextOut.h>
|
||||||
@ -96,7 +96,7 @@ Returns:
|
|||||||
do {
|
do {
|
||||||
Status = DataHub->GetNextRecord (DataHub, &Mtc, &mDataHubStdErrEvent, &Record);
|
Status = DataHub->GetNextRecord (DataHub, &Mtc, &mDataHubStdErrEvent, &Record);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
if (CompareGuid (&Record->DataRecordGuid, &gEfiStatusCodeGuid)) {
|
if (CompareGuid (&Record->DataRecordGuid, &gEfiDataHubStatusCodeRecordGuid)) {
|
||||||
DataRecord = (DATA_HUB_STATUS_CODE_DATA_RECORD *) (((CHAR8 *) Record) + Record->HeaderSize);
|
DataRecord = (DATA_HUB_STATUS_CODE_DATA_RECORD *) (((CHAR8 *) Record) + Record->HeaderSize);
|
||||||
|
|
||||||
if (DataRecord->Data.HeaderSize > 0) {
|
if (DataRecord->Data.HeaderSize > 0) {
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
gEfiStatusCodeDataTypeDebugGuid # SOMETIMES_CONSUMED
|
gEfiStatusCodeDataTypeDebugGuid # SOMETIMES_CONSUMED
|
||||||
gEfiStatusCodeGuid # SOMETIMES_CONSUMED
|
gEfiDataHubStatusCodeRecordGuid # SOMETIMES_CONSUMED
|
||||||
|
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -281,7 +281,7 @@ LogDataHubEventCallBack (
|
|||||||
|
|
||||||
mDataHubProtocol->LogData (
|
mDataHubProtocol->LogData (
|
||||||
mDataHubProtocol,
|
mDataHubProtocol,
|
||||||
&gEfiStatusCodeGuid,
|
&gEfiDataHubStatusCodeRecordGuid,
|
||||||
&gEfiStatusCodeRuntimeProtocolGuid,
|
&gEfiStatusCodeRuntimeProtocolGuid,
|
||||||
DataRecordClass,
|
DataRecordClass,
|
||||||
Record,
|
Record,
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
//
|
//
|
||||||
// The protocols, PPI and GUID defintions for this module
|
// The protocols, PPI and GUID defintions for this module
|
||||||
//
|
//
|
||||||
#include <Guid/StatusCode.h>
|
#include <Guid/DataHubStatusCodeRecord.h>
|
||||||
#include <Protocol/DataHub.h>
|
#include <Protocol/DataHub.h>
|
||||||
#include <Protocol/SerialIo.h>
|
#include <Protocol/SerialIo.h>
|
||||||
#include <Guid/MemoryStatusCodeRecord.h>
|
#include <Guid/MemoryStatusCodeRecord.h>
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
gEfiStatusCodeGuid # SOMETIMES_CONSUMED
|
gEfiDataHubStatusCodeRecordGuid # SOMETIMES_CONSUMED
|
||||||
gMemoryStatusCodeRecordGuid # SOMETIMES_CONSUMED
|
gMemoryStatusCodeRecordGuid # SOMETIMES_CONSUMED
|
||||||
gEfiStatusCodeSpecificDataGuid # SOMETIMES_CONSUMED
|
gEfiStatusCodeSpecificDataGuid # SOMETIMES_CONSUMED
|
||||||
gEfiStatusCodeDataTypeDebugGuid # PROTOCOL ALWAYS_CONSUMED
|
gEfiStatusCodeDataTypeDebugGuid # PROTOCOL ALWAYS_CONSUMED
|
||||||
|
Reference in New Issue
Block a user