summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg/Library
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-11-16 19:21:20 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commita1878955b29ad924761e165253e4ff3cfc4f6c1f (patch)
tree7bb930a6c30fed6e8fd0b1fda1341e134cd75626 /EmbeddedPkg/Library
parentc5b3a56e4f7e4361997544557511d6b835568193 (diff)
downloadedk2-a1878955b29ad924761e165253e4ff3cfc4f6c1f.tar.gz
edk2-a1878955b29ad924761e165253e4ff3cfc4f6c1f.tar.bz2
edk2-a1878955b29ad924761e165253e4ff3cfc4f6c1f.zip
EmbeddedPkg: 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: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'EmbeddedPkg/Library')
-rw-r--r--EmbeddedPkg/Library/AcpiLib/AcpiLib.c2
-rw-r--r--EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c12
-rw-r--r--EmbeddedPkg/Library/PrePiLib/FwVol.c6
-rw-r--r--EmbeddedPkg/Library/PrePiLib/PrePiLib.c6
4 files changed, 9 insertions, 17 deletions
diff --git a/EmbeddedPkg/Library/AcpiLib/AcpiLib.c b/EmbeddedPkg/Library/AcpiLib/AcpiLib.c
index ff7d678433..c2bde4ad8e 100644
--- a/EmbeddedPkg/Library/AcpiLib/AcpiLib.c
+++ b/EmbeddedPkg/Library/AcpiLib/AcpiLib.c
@@ -108,7 +108,7 @@ LocateAndInstallAcpiFromFvConditional (
AcpiTableSize = ((EFI_ACPI_DESCRIPTION_HEADER *) AcpiTable)->Length;
ASSERT (SectionSize >= AcpiTableSize);
- DEBUG ((EFI_D_ERROR, "- Found '%c%c%c%c' ACPI Table\n",
+ DEBUG ((DEBUG_ERROR, "- Found '%c%c%c%c' ACPI Table\n",
(((EFI_ACPI_DESCRIPTION_HEADER *) AcpiTable)->Signature & 0xFF),
((((EFI_ACPI_DESCRIPTION_HEADER *) AcpiTable)->Signature >> 8) & 0xFF),
((((EFI_ACPI_DESCRIPTION_HEADER *) AcpiTable)->Signature >> 16) & 0xFF),
diff --git a/EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c b/EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c
index 088e23e0d8..71452008ec 100644
--- a/EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c
+++ b/EmbeddedPkg/Library/GdbSerialLib/GdbSerialLib.c
@@ -199,8 +199,8 @@ GdbGetChar (
Char = IoRead8 (gPort);
- // Make this an EFI_D_INFO after we get everything debugged.
- DEBUG ((EFI_D_ERROR, "<%c<", Char));
+ // Make this an DEBUG_INFO after we get everything debugged.
+ DEBUG ((DEBUG_ERROR, "<%c<", Char));
return Char;
}
@@ -221,8 +221,8 @@ GdbPutChar (
{
UINT8 Data;
- // Make this an EFI_D_INFO after we get everything debugged.
- DEBUG ((EFI_D_ERROR, ">%c>", Char));
+ // Make this an DEBUG_INFO after we get everything debugged.
+ DEBUG ((DEBUG_ERROR, ">%c>", Char));
// Wait for the serial port to be ready
do {
@@ -250,7 +250,3 @@ GdbPutString (
String++;
}
}
-
-
-
-
diff --git a/EmbeddedPkg/Library/PrePiLib/FwVol.c b/EmbeddedPkg/Library/PrePiLib/FwVol.c
index 881506eddd..83aa40f794 100644
--- a/EmbeddedPkg/Library/PrePiLib/FwVol.c
+++ b/EmbeddedPkg/Library/PrePiLib/FwVol.c
@@ -361,7 +361,7 @@ FfsProcessSection (
//
// GetInfo failed
//
- DEBUG ((EFI_D_ERROR, "Decompress GetInfo Failed - %r\n", Status));
+ DEBUG ((DEBUG_ERROR, "Decompress GetInfo Failed - %r\n", Status));
return EFI_NOT_FOUND;
}
//
@@ -415,7 +415,7 @@ FfsProcessSection (
//
// Decompress failed
//
- DEBUG ((EFI_D_ERROR, "Decompress Failed - %r\n", Status));
+ DEBUG ((DEBUG_ERROR, "Decompress Failed - %r\n", Status));
return EFI_NOT_FOUND;
} else {
return FfsProcessSection (
@@ -874,5 +874,3 @@ FfsProcessFvFile (
return EFI_SUCCESS;
}
-
-
diff --git a/EmbeddedPkg/Library/PrePiLib/PrePiLib.c b/EmbeddedPkg/Library/PrePiLib/PrePiLib.c
index afbe146632..d20617cf4b 100644
--- a/EmbeddedPkg/Library/PrePiLib/PrePiLib.c
+++ b/EmbeddedPkg/Library/PrePiLib/PrePiLib.c
@@ -154,7 +154,7 @@ LoadDxeCoreFromFfsFile (
BuildModuleHob (&FvFileInfo.FileName, (EFI_PHYSICAL_ADDRESS)(UINTN)ImageAddress, EFI_SIZE_TO_PAGES ((UINT32) ImageSize) * EFI_PAGE_SIZE, EntryPoint);
- DEBUG ((EFI_D_INFO | EFI_D_LOAD, "Loading DxeCore at 0x%10p EntryPoint=0x%10p\n", (VOID *)(UINTN)ImageAddress, (VOID *)(UINTN)EntryPoint));
+ DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Loading DxeCore at 0x%10p EntryPoint=0x%10p\n", (VOID *)(UINTN)ImageAddress, (VOID *)(UINTN)EntryPoint));
Hob = GetHobList ();
if (StackSize == 0) {
@@ -191,7 +191,7 @@ LoadDxeCoreFromFfsFile (
}
// Should never get here as DXE Core does not return
- DEBUG ((EFI_D_ERROR, "DxeCore returned\n"));
+ DEBUG ((DEBUG_ERROR, "DxeCore returned\n"));
ASSERT (FALSE);
return EFI_DEVICE_ERROR;
@@ -247,5 +247,3 @@ DecompressFirstFv (
return Status;
}
-
-