MdeModulePkg: Change use of EFI_D_* to DEBUG_*
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3739 Update all use of EFI_D_* defines in DEBUG() macros to DEBUG_* defines. Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
917e98f3e5
commit
87000d7708
@@ -1048,9 +1048,9 @@ FindPath (
|
||||
}
|
||||
|
||||
DEBUG_CODE_BEGIN ();
|
||||
DEBUG ((EFI_D_ERROR, "AcpiSdt: FindPath - "));
|
||||
DEBUG ((DEBUG_ERROR, "AcpiSdt: FindPath - "));
|
||||
AmlPrintNameString (AmlPath);
|
||||
DEBUG ((EFI_D_ERROR, "\n"));
|
||||
DEBUG ((DEBUG_ERROR, "\n"));
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
if (AmlHandle->Signature == EFI_AML_ROOT_HANDLE_SIGNATURE) {
|
||||
|
@@ -263,9 +263,9 @@ AmlInsertNodeToTree (
|
||||
//
|
||||
// Oops!!!, There must be something wrong.
|
||||
//
|
||||
DEBUG ((EFI_D_ERROR, "AML: Override Happen - %a!\n", NameString));
|
||||
DEBUG ((EFI_D_ERROR, "AML: Existing Node - %x\n", AmlNodeList->Buffer));
|
||||
DEBUG ((EFI_D_ERROR, "AML: New Buffer - %x\n", Buffer));
|
||||
DEBUG ((DEBUG_ERROR, "AML: Override Happen - %a!\n", NameString));
|
||||
DEBUG ((DEBUG_ERROR, "AML: Existing Node - %x\n", AmlNodeList->Buffer));
|
||||
DEBUG ((DEBUG_ERROR, "AML: New Buffer - %x\n", Buffer));
|
||||
|
||||
return NULL;
|
||||
}
|
||||
@@ -476,14 +476,14 @@ AmlDumpNodeInfo (
|
||||
CurrentLink = AmlParentNodeList->Children.ForwardLink;
|
||||
|
||||
if (Level == 0) {
|
||||
DEBUG ((EFI_D_ERROR, "\\"));
|
||||
DEBUG ((DEBUG_ERROR, "\\"));
|
||||
} else {
|
||||
for (Index = 0; Index < Level; Index++) {
|
||||
DEBUG ((EFI_D_ERROR, " "));
|
||||
DEBUG ((DEBUG_ERROR, " "));
|
||||
}
|
||||
AmlPrintNameSeg (AmlParentNodeList->Name);
|
||||
}
|
||||
DEBUG ((EFI_D_ERROR, "\n"));
|
||||
DEBUG ((DEBUG_ERROR, "\n"));
|
||||
|
||||
while (CurrentLink != &AmlParentNodeList->Children) {
|
||||
CurrentAmlNodeList = EFI_AML_NODE_LIST_FROM_LINK (CurrentLink);
|
||||
@@ -543,7 +543,7 @@ AmlFindPath (
|
||||
}
|
||||
|
||||
DEBUG_CODE_BEGIN ();
|
||||
DEBUG ((EFI_D_ERROR, "AcpiSdt: NameSpace:\n"));
|
||||
DEBUG ((DEBUG_ERROR, "AcpiSdt: NameSpace:\n"));
|
||||
AmlDumpNodeInfo (AmlRootNodeList, 0);
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
@@ -579,9 +579,9 @@ AmlFindPath (
|
||||
//
|
||||
if (CurrentAmlNodeList != NULL) {
|
||||
DEBUG_CODE_BEGIN ();
|
||||
DEBUG ((EFI_D_ERROR, "AcpiSdt: Search from: \\"));
|
||||
DEBUG ((DEBUG_ERROR, "AcpiSdt: Search from: \\"));
|
||||
AmlPrintNameSeg (CurrentAmlNodeList->Name);
|
||||
DEBUG ((EFI_D_ERROR, "\n"));
|
||||
DEBUG ((DEBUG_ERROR, "\n"));
|
||||
DEBUG_CODE_END ();
|
||||
AmlNodeList = AmlFindNodeInTheTree (
|
||||
AmlPath,
|
||||
|
@@ -457,19 +457,19 @@ AmlPrintNameSeg (
|
||||
IN UINT8 *Buffer
|
||||
)
|
||||
{
|
||||
DEBUG ((EFI_D_ERROR, "%c", Buffer[0]));
|
||||
DEBUG ((DEBUG_ERROR, "%c", Buffer[0]));
|
||||
if ((Buffer[1] == '_') && (Buffer[2] == '_') && (Buffer[3] == '_')) {
|
||||
return ;
|
||||
}
|
||||
DEBUG ((EFI_D_ERROR, "%c", Buffer[1]));
|
||||
DEBUG ((DEBUG_ERROR, "%c", Buffer[1]));
|
||||
if ((Buffer[2] == '_') && (Buffer[3] == '_')) {
|
||||
return ;
|
||||
}
|
||||
DEBUG ((EFI_D_ERROR, "%c", Buffer[2]));
|
||||
DEBUG ((DEBUG_ERROR, "%c", Buffer[2]));
|
||||
if (Buffer[3] == '_') {
|
||||
return ;
|
||||
}
|
||||
DEBUG ((EFI_D_ERROR, "%c", Buffer[3]));
|
||||
DEBUG ((DEBUG_ERROR, "%c", Buffer[3]));
|
||||
return ;
|
||||
}
|
||||
|
||||
@@ -491,14 +491,14 @@ AmlPrintNameString (
|
||||
// RootChar
|
||||
//
|
||||
Buffer ++;
|
||||
DEBUG ((EFI_D_ERROR, "\\"));
|
||||
DEBUG ((DEBUG_ERROR, "\\"));
|
||||
} else if (*Buffer == AML_PARENT_PREFIX_CHAR) {
|
||||
//
|
||||
// ParentPrefixChar
|
||||
//
|
||||
do {
|
||||
Buffer ++;
|
||||
DEBUG ((EFI_D_ERROR, "^"));
|
||||
DEBUG ((DEBUG_ERROR, "^"));
|
||||
} while (*Buffer == AML_PARENT_PREFIX_CHAR);
|
||||
}
|
||||
|
||||
@@ -530,7 +530,7 @@ AmlPrintNameString (
|
||||
AmlPrintNameSeg (Buffer);
|
||||
Buffer += AML_NAME_SEG_SIZE;
|
||||
for (Index = 0; Index < SegCount - 1; Index++) {
|
||||
DEBUG ((EFI_D_ERROR, "."));
|
||||
DEBUG ((DEBUG_ERROR, "."));
|
||||
AmlPrintNameSeg (Buffer);
|
||||
Buffer += AML_NAME_SEG_SIZE;
|
||||
}
|
||||
|
@@ -164,7 +164,7 @@ S3BootScriptExecutorEntryFunction (
|
||||
);
|
||||
} else {
|
||||
// Unsupported for 32bit DXE, 64bit OS vector
|
||||
DEBUG (( EFI_D_ERROR, "Unsupported for 32bit DXE transfer to 64bit OS waking vector!\r\n"));
|
||||
DEBUG (( DEBUG_ERROR, "Unsupported for 32bit DXE transfer to 64bit OS waking vector!\r\n"));
|
||||
ASSERT (FALSE);
|
||||
}
|
||||
} else {
|
||||
@@ -494,4 +494,3 @@ BootScriptExecutorEntryPoint (
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
@@ -248,7 +248,7 @@ FpdtAllocateS3PerformanceTableMemory (
|
||||
EFI_SIZE_TO_PAGES (sizeof (S3_PERFORMANCE_TABLE))
|
||||
);
|
||||
}
|
||||
DEBUG ((EFI_D_INFO, "FPDT: ACPI S3 Performance Table address = 0x%x\n", mAcpiS3PerformanceTable));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: ACPI S3 Performance Table address = 0x%x\n", mAcpiS3PerformanceTable));
|
||||
if (mAcpiS3PerformanceTable != NULL) {
|
||||
CopyMem (mAcpiS3PerformanceTable, &mS3PerformanceTableTemplate, sizeof (mS3PerformanceTableTemplate));
|
||||
}
|
||||
@@ -526,11 +526,11 @@ FpdtStatusCodeListenerDxe (
|
||||
//
|
||||
// Dump FPDT Boot Performance record.
|
||||
//
|
||||
DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - ResetEnd = %ld\n", mAcpiBootPerformanceTable->BasicBoot.ResetEnd));
|
||||
DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - OsLoaderLoadImageStart = 0\n"));
|
||||
DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - OsLoaderStartImageStart = %ld\n", mAcpiBootPerformanceTable->BasicBoot.OsLoaderStartImageStart));
|
||||
DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - ExitBootServicesEntry = 0\n"));
|
||||
DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - ExitBootServicesExit = 0\n"));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: Boot Performance - ResetEnd = %ld\n", mAcpiBootPerformanceTable->BasicBoot.ResetEnd));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: Boot Performance - OsLoaderLoadImageStart = 0\n"));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: Boot Performance - OsLoaderStartImageStart = %ld\n", mAcpiBootPerformanceTable->BasicBoot.OsLoaderStartImageStart));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: Boot Performance - ExitBootServicesEntry = 0\n"));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: Boot Performance - ExitBootServicesExit = 0\n"));
|
||||
} else if (Data != NULL && CompareGuid (&Data->Type, &gEdkiiFpdtExtendedFirmwarePerformanceGuid)) {
|
||||
//
|
||||
// Get the Boot performance table and then install it to ACPI table.
|
||||
@@ -615,10 +615,10 @@ FpdtExitBootServicesEventNotify (
|
||||
//
|
||||
// Dump FPDT Boot Performance record.
|
||||
//
|
||||
DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - ResetEnd = %ld\n", mAcpiBootPerformanceTable->BasicBoot.ResetEnd));
|
||||
DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - OsLoaderLoadImageStart = %ld\n", mAcpiBootPerformanceTable->BasicBoot.OsLoaderLoadImageStart));
|
||||
DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - OsLoaderStartImageStart = %ld\n", mAcpiBootPerformanceTable->BasicBoot.OsLoaderStartImageStart));
|
||||
DEBUG ((EFI_D_INFO, "FPDT: Boot Performance - ExitBootServicesEntry = %ld\n", mAcpiBootPerformanceTable->BasicBoot.ExitBootServicesEntry));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: Boot Performance - ResetEnd = %ld\n", mAcpiBootPerformanceTable->BasicBoot.ResetEnd));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: Boot Performance - OsLoaderLoadImageStart = %ld\n", mAcpiBootPerformanceTable->BasicBoot.OsLoaderLoadImageStart));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: Boot Performance - OsLoaderStartImageStart = %ld\n", mAcpiBootPerformanceTable->BasicBoot.OsLoaderStartImageStart));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: Boot Performance - ExitBootServicesEntry = %ld\n", mAcpiBootPerformanceTable->BasicBoot.ExitBootServicesEntry));
|
||||
//
|
||||
// ExitBootServicesExit will be updated later, so don't dump it here.
|
||||
//
|
||||
|
@@ -100,7 +100,7 @@ FpdtStatusCodeListenerPei (
|
||||
AcpiS3PerformanceTable = (S3_PERFORMANCE_TABLE *) (UINTN) S3PerformanceTablePointer;
|
||||
ASSERT (AcpiS3PerformanceTable != NULL);
|
||||
if (AcpiS3PerformanceTable->Header.Signature != EFI_ACPI_5_0_FPDT_S3_PERFORMANCE_TABLE_SIGNATURE) {
|
||||
DEBUG ((EFI_D_ERROR, "FPDT S3 performance data in ACPI memory get corrupted\n"));
|
||||
DEBUG ((DEBUG_ERROR, "FPDT S3 performance data in ACPI memory get corrupted\n"));
|
||||
return EFI_ABORTED;
|
||||
}
|
||||
AcpiS3ResumeRecord = &AcpiS3PerformanceTable->S3Resume;
|
||||
@@ -112,9 +112,9 @@ FpdtStatusCodeListenerPei (
|
||||
AcpiS3ResumeRecord->ResumeCount++;
|
||||
AcpiS3ResumeRecord->AverageResume = DivU64x32 (S3ResumeTotal + AcpiS3ResumeRecord->FullResume, AcpiS3ResumeRecord->ResumeCount);
|
||||
|
||||
DEBUG ((EFI_D_INFO, "FPDT: S3 Resume Performance - ResumeCount = %d\n", AcpiS3ResumeRecord->ResumeCount));
|
||||
DEBUG ((EFI_D_INFO, "FPDT: S3 Resume Performance - FullResume = %ld\n", AcpiS3ResumeRecord->FullResume));
|
||||
DEBUG ((EFI_D_INFO, "FPDT: S3 Resume Performance - AverageResume = %ld\n", AcpiS3ResumeRecord->AverageResume));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: S3 Resume Performance - ResumeCount = %d\n", AcpiS3ResumeRecord->ResumeCount));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: S3 Resume Performance - FullResume = %ld\n", AcpiS3ResumeRecord->FullResume));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: S3 Resume Performance - AverageResume = %ld\n", AcpiS3ResumeRecord->AverageResume));
|
||||
|
||||
//
|
||||
// Update S3 Suspend Performance Record.
|
||||
@@ -132,8 +132,8 @@ FpdtStatusCodeListenerPei (
|
||||
AcpiS3SuspendRecord->SuspendStart = S3SuspendRecord.SuspendStart;
|
||||
AcpiS3SuspendRecord->SuspendEnd = S3SuspendRecord.SuspendEnd;
|
||||
|
||||
DEBUG ((EFI_D_INFO, "FPDT: S3 Suspend Performance - SuspendStart = %ld\n", AcpiS3SuspendRecord->SuspendStart));
|
||||
DEBUG ((EFI_D_INFO, "FPDT: S3 Suspend Performance - SuspendEnd = %ld\n", AcpiS3SuspendRecord->SuspendEnd));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: S3 Suspend Performance - SuspendStart = %ld\n", AcpiS3SuspendRecord->SuspendStart));
|
||||
DEBUG ((DEBUG_INFO, "FPDT: S3 Suspend Performance - SuspendEnd = %ld\n", AcpiS3SuspendRecord->SuspendEnd));
|
||||
|
||||
Status = PeiServicesLocatePpi (
|
||||
&gEfiPeiReadOnlyVariable2PpiGuid,
|
||||
|
@@ -236,11 +236,11 @@ AcpiS3ContextSaveOnEndOfDxe (
|
||||
EFI_ACPI_4_0_FIRMWARE_ACPI_CONTROL_STRUCTURE *Facs;
|
||||
VOID *Interface;
|
||||
|
||||
DEBUG ((EFI_D_INFO, "AcpiS3ContextSave!\n"));
|
||||
DEBUG ((DEBUG_INFO, "AcpiS3ContextSave!\n"));
|
||||
|
||||
Status = gBS->LocateProtocol (&gEfiLockBoxProtocolGuid, NULL, &Interface);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_INFO | EFI_D_WARN, "ACPI S3 context can't be saved without LockBox!\n"));
|
||||
DEBUG ((DEBUG_INFO | DEBUG_WARN, "ACPI S3 context can't be saved without LockBox!\n"));
|
||||
goto Done;
|
||||
}
|
||||
|
||||
@@ -291,12 +291,12 @@ AcpiS3ContextSaveOnEndOfDxe (
|
||||
AcpiS3Context->S3DebugBufferAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)AllocateMemoryBelow4G (EfiReservedMemoryType, EFI_PAGE_SIZE);
|
||||
SetMem ((VOID *)(UINTN)AcpiS3Context->S3DebugBufferAddress, EFI_PAGE_SIZE, 0xff);
|
||||
|
||||
DEBUG((EFI_D_INFO, "AcpiS3Context: AcpiFacsTable is 0x%8x\n", AcpiS3Context->AcpiFacsTable));
|
||||
DEBUG((EFI_D_INFO, "AcpiS3Context: IdtrProfile is 0x%8x\n", AcpiS3Context->IdtrProfile));
|
||||
DEBUG((EFI_D_INFO, "AcpiS3Context: S3NvsPageTableAddress is 0x%8x\n", AcpiS3Context->S3NvsPageTableAddress));
|
||||
DEBUG((EFI_D_INFO, "AcpiS3Context: S3DebugBufferAddress is 0x%8x\n", AcpiS3Context->S3DebugBufferAddress));
|
||||
DEBUG((EFI_D_INFO, "AcpiS3Context: BootScriptStackBase is 0x%8x\n", AcpiS3Context->BootScriptStackBase));
|
||||
DEBUG((EFI_D_INFO, "AcpiS3Context: BootScriptStackSize is 0x%8x\n", AcpiS3Context->BootScriptStackSize));
|
||||
DEBUG((DEBUG_INFO, "AcpiS3Context: AcpiFacsTable is 0x%8x\n", AcpiS3Context->AcpiFacsTable));
|
||||
DEBUG((DEBUG_INFO, "AcpiS3Context: IdtrProfile is 0x%8x\n", AcpiS3Context->IdtrProfile));
|
||||
DEBUG((DEBUG_INFO, "AcpiS3Context: S3NvsPageTableAddress is 0x%8x\n", AcpiS3Context->S3NvsPageTableAddress));
|
||||
DEBUG((DEBUG_INFO, "AcpiS3Context: S3DebugBufferAddress is 0x%8x\n", AcpiS3Context->S3DebugBufferAddress));
|
||||
DEBUG((DEBUG_INFO, "AcpiS3Context: BootScriptStackBase is 0x%8x\n", AcpiS3Context->BootScriptStackBase));
|
||||
DEBUG((DEBUG_INFO, "AcpiS3Context: BootScriptStackSize is 0x%8x\n", AcpiS3Context->BootScriptStackSize));
|
||||
|
||||
Status = SaveLockBox (
|
||||
&gEfiAcpiVariableGuid,
|
||||
@@ -322,4 +322,3 @@ Done:
|
||||
Status = gBS->CloseEvent (Event);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user