]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg: replace old EFI_D_ debug levels with new DEBUG_ ones
authorRebecca Cran <rebecca@bsdio.com>
Wed, 29 Apr 2020 21:53:27 +0000 (15:53 -0600)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 30 Apr 2020 13:01:16 +0000 (13:01 +0000)
Generated mechanically with:
find OvmfPkg -type f -exec sed -i -e 's/EFI_D_/DEBUG_/g' {} \;

Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
Cc: Philippe Mathieu-Daude <philmd@redhat.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20200429215327.606467-1-rebecca@bsdio.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
64 files changed:
OvmfPkg/AcpiPlatformDxe/EntryPoint.c
OvmfPkg/AcpiPlatformDxe/PciDecoding.c
OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c
OvmfPkg/Csm/BiosThunk/VideoDxe/BiosVideo.c
OvmfPkg/Csm/CsmSupportLib/LegacyInterrupt.c
OvmfPkg/Csm/CsmSupportLib/LegacyPlatform.c
OvmfPkg/Csm/CsmSupportLib/LegacyRegion.c
OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c
OvmfPkg/Csm/LegacyBiosDxe/LegacyBootSupport.c
OvmfPkg/Csm/LegacyBiosDxe/LegacyPci.c
OvmfPkg/Csm/LegacyBiosDxe/LegacySio.c
OvmfPkg/Csm/LegacyBiosDxe/Thunk.c
OvmfPkg/Csm/LegacyBootMaintUiLib/LegacyBootMaintUi.c
OvmfPkg/Csm/LegacyBootManagerLib/LegacyBm.c
OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c
OvmfPkg/IncompatiblePciDeviceSupportDxe/IncompatiblePciDeviceSupport.c
OvmfPkg/Library/AcpiTimerLib/BaseAcpiTimerLib.c
OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.c
OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.c
OvmfPkg/Library/LoadLinuxLib/Linux.c
OvmfPkg/Library/NvVarsFileLib/FsAccess.c
OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
OvmfPkg/Library/QemuBootOrderLib/ExtraRootBusMap.c
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgDxe.c
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgPei.c
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSec.c
OvmfPkg/Library/SerializeVariablesLib/SerializeVariablesLib.c
OvmfPkg/Library/SmbiosVersionLib/DetectSmbiosVersionLib.c
OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c
OvmfPkg/Library/XenHypercallLib/XenHypercall.c
OvmfPkg/Library/XenIoMmioLib/XenIoMmioLib.c
OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.c
OvmfPkg/PlatformDxe/Platform.c
OvmfPkg/PlatformPei/FeatureControl.c
OvmfPkg/PlatformPei/Fv.c
OvmfPkg/PlatformPei/MemDetect.c
OvmfPkg/PlatformPei/Platform.c
OvmfPkg/PlatformPei/Xen.c
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceDxe.c
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceSmm.c
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/QemuFlash.c
OvmfPkg/QemuVideoDxe/Driver.c
OvmfPkg/QemuVideoDxe/Gop.c
OvmfPkg/QemuVideoDxe/Initialize.c
OvmfPkg/QemuVideoDxe/VbeShim.c
OvmfPkg/SataControllerDxe/SataController.c
OvmfPkg/Sec/SecMain.c
OvmfPkg/SmmAccess/SmmAccessPei.c
OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.c
OvmfPkg/VirtioGpuDxe/Commands.c
OvmfPkg/VirtioGpuDxe/DriverBinding.c
OvmfPkg/VirtioGpuDxe/VirtioGpu.h
OvmfPkg/XenBusDxe/EventChannel.c
OvmfPkg/XenBusDxe/GrantTable.c
OvmfPkg/XenBusDxe/XenBus.c
OvmfPkg/XenBusDxe/XenBusDxe.c
OvmfPkg/XenBusDxe/XenStore.c
OvmfPkg/XenIoPciDxe/XenIoPciDxe.c
OvmfPkg/XenPvBlkDxe/BlockFront.c
OvmfPkg/XenPvBlkDxe/BlockIo.c
OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.c

index 4fd7abc0b4215ea6fe72f50a729db663a25b9ab6..f66f89291157b9036b106639498ca675b355c1a7 100644 (file)
@@ -39,12 +39,12 @@ OnRootBridgesConnected (
 {\r
   EFI_STATUS Status;\r
 \r
-  DEBUG ((EFI_D_INFO,\r
+  DEBUG ((DEBUG_INFO,\r
     "%a: root bridges have been connected, installing ACPI tables\n",\r
     __FUNCTION__));\r
   Status = InstallAcpiTables (FindAcpiTableProtocol ());\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "%a: InstallAcpiTables: %r\n", __FUNCTION__, Status));\r
+    DEBUG ((DEBUG_ERROR, "%a: InstallAcpiTables: %r\n", __FUNCTION__, Status));\r
   }\r
   gBS->CloseEvent (Event);\r
 }\r
@@ -66,7 +66,7 @@ AcpiPlatformEntryPoint (
   // the full functionality.\r
   //\r
   if (PcdGetBool (PcdPciDisableBusEnumeration)) {\r
-    DEBUG ((EFI_D_INFO, "%a: PCI or its enumeration disabled, installing "\r
+    DEBUG ((DEBUG_INFO, "%a: PCI or its enumeration disabled, installing "\r
       "ACPI tables\n", __FUNCTION__));\r
     return InstallAcpiTables (FindAcpiTableProtocol ());\r
   }\r
@@ -81,7 +81,7 @@ AcpiPlatformEntryPoint (
                   OnRootBridgesConnected, NULL /* Context */,\r
                   &gRootBridgesConnectedEventGroupGuid, &RootBridgesConnected);\r
   if (!EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_INFO,\r
+    DEBUG ((DEBUG_INFO,\r
       "%a: waiting for root bridges to be connected, registered callback\n",\r
       __FUNCTION__));\r
   }\r
index eb0417bba40cf74737ce83533adc1d1247a6bb11..73894106c9ec4a4feb91223df6542b194a5d4e2e 100644 (file)
@@ -69,14 +69,14 @@ EnablePciDecoding (
   }\r
 \r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_WARN, "%a: LocateHandleBuffer(): %r\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_WARN, "%a: LocateHandleBuffer(): %r\n", __FUNCTION__,\r
       Status));\r
     return;\r
   }\r
 \r
   OrigAttrs = AllocatePool (NoHandles * sizeof *OrigAttrs);\r
   if (OrigAttrs == NULL) {\r
-    DEBUG ((EFI_D_WARN, "%a: AllocatePool(): out of resources\n",\r
+    DEBUG ((DEBUG_WARN, "%a: AllocatePool(): out of resources\n",\r
       __FUNCTION__));\r
     goto FreeHandles;\r
   }\r
@@ -99,7 +99,7 @@ EnablePciDecoding (
     Status = PciIo->Attributes (PciIo, EfiPciIoAttributeOperationGet, 0,\r
                       &OrigAttrs[Idx].PciAttributes);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_WARN, "%a: EfiPciIoAttributeOperationGet: %r\n",\r
+      DEBUG ((DEBUG_WARN, "%a: EfiPciIoAttributeOperationGet: %r\n",\r
         __FUNCTION__, Status));\r
       goto RestoreAttributes;\r
     }\r
@@ -110,7 +110,7 @@ EnablePciDecoding (
     Status = PciIo->Attributes (PciIo, EfiPciIoAttributeOperationSupported, 0,\r
                       &Attributes);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_WARN, "%a: EfiPciIoAttributeOperationSupported: %r\n",\r
+      DEBUG ((DEBUG_WARN, "%a: EfiPciIoAttributeOperationSupported: %r\n",\r
         __FUNCTION__, Status));\r
       goto RestoreAttributes;\r
     }\r
@@ -122,7 +122,7 @@ EnablePciDecoding (
     Status = PciIo->Attributes (PciIo, EfiPciIoAttributeOperationEnable,\r
                       Attributes, NULL);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_WARN, "%a: EfiPciIoAttributeOperationEnable: %r\n",\r
+      DEBUG ((DEBUG_WARN, "%a: EfiPciIoAttributeOperationEnable: %r\n",\r
         __FUNCTION__, Status));\r
       goto RestoreAttributes;\r
     }\r
index 75a3a88a36129ca6d5f1dbf31bede1d737e1e1d4..b62027db6e6692ee2f5415267f5e2226b8449f30 100644 (file)
@@ -329,19 +329,19 @@ ProcessCmdAllocate (
   BLOB                 *Blob;\r
 \r
   if (Allocate->File[QEMU_LOADER_FNAME_SIZE - 1] != '\0') {\r
-    DEBUG ((EFI_D_ERROR, "%a: malformed file name\n", __FUNCTION__));\r
+    DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__));\r
     return EFI_PROTOCOL_ERROR;\r
   }\r
 \r
   if (Allocate->Alignment > EFI_PAGE_SIZE) {\r
-    DEBUG ((EFI_D_ERROR, "%a: unsupported alignment 0x%x\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_ERROR, "%a: unsupported alignment 0x%x\n", __FUNCTION__,\r
       Allocate->Alignment));\r
     return EFI_UNSUPPORTED;\r
   }\r
 \r
   Status = QemuFwCfgFindFile ((CHAR8 *)Allocate->File, &FwCfgItem, &FwCfgSize);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "%a: QemuFwCfgFindFile(\"%a\"): %r\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_ERROR, "%a: QemuFwCfgFindFile(\"%a\"): %r\n", __FUNCTION__,\r
       Allocate->File, Status));\r
     return Status;\r
   }\r
@@ -372,7 +372,7 @@ ProcessCmdAllocate (
 \r
   Status = OrderedCollectionInsert (Tracker, NULL, Blob);\r
   if (Status == RETURN_ALREADY_STARTED) {\r
-    DEBUG ((EFI_D_ERROR, "%a: duplicated file \"%a\"\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_ERROR, "%a: duplicated file \"%a\"\n", __FUNCTION__,\r
       Allocate->File));\r
     Status = EFI_PROTOCOL_ERROR;\r
   }\r
@@ -384,7 +384,7 @@ ProcessCmdAllocate (
   QemuFwCfgReadBytes (FwCfgSize, Blob->Base);\r
   ZeroMem (Blob->Base + Blob->Size, EFI_PAGES_TO_SIZE (NumPages) - Blob->Size);\r
 \r
-  DEBUG ((EFI_D_VERBOSE, "%a: File=\"%a\" Alignment=0x%x Zone=%d Size=0x%Lx "\r
+  DEBUG ((DEBUG_VERBOSE, "%a: File=\"%a\" Alignment=0x%x Zone=%d Size=0x%Lx "\r
     "Address=0x%Lx\n", __FUNCTION__, Allocate->File, Allocate->Alignment,\r
     Allocate->Zone, (UINT64)Blob->Size, (UINT64)(UINTN)Blob->Base));\r
   return EFI_SUCCESS;\r
@@ -432,14 +432,14 @@ ProcessCmdAddPointer (
 \r
   if (AddPointer->PointerFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0' ||\r
       AddPointer->PointeeFile[QEMU_LOADER_FNAME_SIZE - 1] != '\0') {\r
-    DEBUG ((EFI_D_ERROR, "%a: malformed file name\n", __FUNCTION__));\r
+    DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__));\r
     return EFI_PROTOCOL_ERROR;\r
   }\r
 \r
   TrackerEntry = OrderedCollectionFind (Tracker, AddPointer->PointerFile);\r
   TrackerEntry2 = OrderedCollectionFind (Tracker, AddPointer->PointeeFile);\r
   if (TrackerEntry == NULL || TrackerEntry2 == NULL) {\r
-    DEBUG ((EFI_D_ERROR, "%a: invalid blob reference(s) \"%a\" / \"%a\"\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: invalid blob reference(s) \"%a\" / \"%a\"\n",\r
       __FUNCTION__, AddPointer->PointerFile, AddPointer->PointeeFile));\r
     return EFI_PROTOCOL_ERROR;\r
   }\r
@@ -450,7 +450,7 @@ ProcessCmdAddPointer (
        AddPointer->PointerSize != 4 && AddPointer->PointerSize != 8) ||\r
       Blob->Size < AddPointer->PointerSize ||\r
       Blob->Size - AddPointer->PointerSize < AddPointer->PointerOffset) {\r
-    DEBUG ((EFI_D_ERROR, "%a: invalid pointer location or size in \"%a\"\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: invalid pointer location or size in \"%a\"\n",\r
       __FUNCTION__, AddPointer->PointerFile));\r
     return EFI_PROTOCOL_ERROR;\r
   }\r
@@ -459,7 +459,7 @@ ProcessCmdAddPointer (
   PointerValue = 0;\r
   CopyMem (&PointerValue, PointerField, AddPointer->PointerSize);\r
   if (PointerValue >= Blob2->Size) {\r
-    DEBUG ((EFI_D_ERROR, "%a: invalid pointer value in \"%a\"\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_ERROR, "%a: invalid pointer value in \"%a\"\n", __FUNCTION__,\r
       AddPointer->PointerFile));\r
     return EFI_PROTOCOL_ERROR;\r
   }\r
@@ -473,14 +473,14 @@ ProcessCmdAddPointer (
   PointerValue += (UINT64)(UINTN)Blob2->Base;\r
   if (AddPointer->PointerSize < 8 &&\r
       RShiftU64 (PointerValue, AddPointer->PointerSize * 8) != 0) {\r
-    DEBUG ((EFI_D_ERROR, "%a: relocated pointer value unrepresentable in "\r
+    DEBUG ((DEBUG_ERROR, "%a: relocated pointer value unrepresentable in "\r
       "\"%a\"\n", __FUNCTION__, AddPointer->PointerFile));\r
     return EFI_PROTOCOL_ERROR;\r
   }\r
 \r
   CopyMem (PointerField, &PointerValue, AddPointer->PointerSize);\r
 \r
-  DEBUG ((EFI_D_VERBOSE, "%a: PointerFile=\"%a\" PointeeFile=\"%a\" "\r
+  DEBUG ((DEBUG_VERBOSE, "%a: PointerFile=\"%a\" PointeeFile=\"%a\" "\r
     "PointerOffset=0x%x PointerSize=%d\n", __FUNCTION__,\r
     AddPointer->PointerFile, AddPointer->PointeeFile,\r
     AddPointer->PointerOffset, AddPointer->PointerSize));\r
@@ -515,13 +515,13 @@ ProcessCmdAddChecksum (
   BLOB                     *Blob;\r
 \r
   if (AddChecksum->File[QEMU_LOADER_FNAME_SIZE - 1] != '\0') {\r
-    DEBUG ((EFI_D_ERROR, "%a: malformed file name\n", __FUNCTION__));\r
+    DEBUG ((DEBUG_ERROR, "%a: malformed file name\n", __FUNCTION__));\r
     return EFI_PROTOCOL_ERROR;\r
   }\r
 \r
   TrackerEntry = OrderedCollectionFind (Tracker, AddChecksum->File);\r
   if (TrackerEntry == NULL) {\r
-    DEBUG ((EFI_D_ERROR, "%a: invalid blob reference \"%a\"\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_ERROR, "%a: invalid blob reference \"%a\"\n", __FUNCTION__,\r
       AddChecksum->File));\r
     return EFI_PROTOCOL_ERROR;\r
   }\r
@@ -530,7 +530,7 @@ ProcessCmdAddChecksum (
   if (Blob->Size <= AddChecksum->ResultOffset ||\r
       Blob->Size < AddChecksum->Length ||\r
       Blob->Size - AddChecksum->Length < AddChecksum->Start) {\r
-    DEBUG ((EFI_D_ERROR, "%a: invalid checksum range in \"%a\"\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: invalid checksum range in \"%a\"\n",\r
       __FUNCTION__, AddChecksum->File));\r
     return EFI_PROTOCOL_ERROR;\r
   }\r
@@ -539,7 +539,7 @@ ProcessCmdAddChecksum (
                                            Blob->Base + AddChecksum->Start,\r
                                            AddChecksum->Length\r
                                            );\r
-  DEBUG ((EFI_D_VERBOSE, "%a: File=\"%a\" ResultOffset=0x%x Start=0x%x "\r
+  DEBUG ((DEBUG_VERBOSE, "%a: File=\"%a\" ResultOffset=0x%x Start=0x%x "\r
     "Length=0x%x\n", __FUNCTION__, AddChecksum->File,\r
     AddChecksum->ResultOffset, AddChecksum->Start, AddChecksum->Length));\r
   return EFI_SUCCESS;\r
@@ -848,7 +848,7 @@ Process2ndPassCmdAddPointer (
   }\r
 \r
   Blob2Remaining -= (UINTN) PointerValue;\r
-  DEBUG ((EFI_D_VERBOSE, "%a: checking for ACPI header in \"%a\" at 0x%Lx "\r
+  DEBUG ((DEBUG_VERBOSE, "%a: checking for ACPI header in \"%a\" at 0x%Lx "\r
     "(remaining: 0x%Lx): ", __FUNCTION__, AddPointer->PointeeFile,\r
     PointerValue, (UINT64)Blob2Remaining));\r
 \r
@@ -864,7 +864,7 @@ Process2ndPassCmdAddPointer (
         Facs->Length <= Blob2Remaining &&\r
         Facs->Signature ==\r
                 EFI_ACPI_1_0_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE) {\r
-      DEBUG ((EFI_D_VERBOSE, "found \"%-4.4a\" size 0x%x\n",\r
+      DEBUG ((DEBUG_VERBOSE, "found \"%-4.4a\" size 0x%x\n",\r
         (CONST CHAR8 *)&Facs->Signature, Facs->Length));\r
       TableSize = Facs->Length;\r
     }\r
@@ -884,7 +884,7 @@ Process2ndPassCmdAddPointer (
       // - Length field consistent with both ACPI and containing blob size\r
       // - checksum is correct\r
       //\r
-      DEBUG ((EFI_D_VERBOSE, "found \"%-4.4a\" size 0x%x\n",\r
+      DEBUG ((DEBUG_VERBOSE, "found \"%-4.4a\" size 0x%x\n",\r
         (CONST CHAR8 *)&Header->Signature, Header->Length));\r
       TableSize = Header->Length;\r
 \r
@@ -901,13 +901,13 @@ Process2ndPassCmdAddPointer (
   }\r
 \r
   if (TableSize == 0) {\r
-    DEBUG ((EFI_D_VERBOSE, "not found; marking fw_cfg blob as opaque\n"));\r
+    DEBUG ((DEBUG_VERBOSE, "not found; marking fw_cfg blob as opaque\n"));\r
     Blob2->HostsOnlyTableData = FALSE;\r
     return EFI_SUCCESS;\r
   }\r
 \r
   if (*NumInstalled == INSTALLED_TABLES_MAX) {\r
-    DEBUG ((EFI_D_ERROR, "%a: can't install more than %d tables\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: can't install more than %d tables\n",\r
       __FUNCTION__, INSTALLED_TABLES_MAX));\r
     Status = EFI_OUT_OF_RESOURCES;\r
     goto RollbackSeenPointer;\r
@@ -917,7 +917,7 @@ Process2ndPassCmdAddPointer (
                            (VOID *)(UINTN)PointerValue, TableSize,\r
                            &InstalledKey[*NumInstalled]);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "%a: InstallAcpiTable(): %r\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_ERROR, "%a: InstallAcpiTable(): %r\n", __FUNCTION__,\r
       Status));\r
     goto RollbackSeenPointer;\r
   }\r
@@ -980,7 +980,7 @@ InstallQemuFwCfgTables (
     return Status;\r
   }\r
   if (FwCfgSize % sizeof *LoaderEntry != 0) {\r
-    DEBUG ((EFI_D_ERROR, "%a: \"etc/table-loader\" has invalid size 0x%Lx\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: \"etc/table-loader\" has invalid size 0x%Lx\n",\r
       __FUNCTION__, (UINT64)FwCfgSize));\r
     return EFI_PROTOCOL_ERROR;\r
   }\r
@@ -1060,7 +1060,7 @@ InstallQemuFwCfgTables (
         break;\r
 \r
     default:\r
-      DEBUG ((EFI_D_VERBOSE, "%a: unknown loader command: 0x%x\n",\r
+      DEBUG ((DEBUG_VERBOSE, "%a: unknown loader command: 0x%x\n",\r
         __FUNCTION__, LoaderEntry->Type));\r
       break;\r
     }\r
@@ -1128,7 +1128,7 @@ UninstallAcpiTables:
       AcpiProtocol->UninstallAcpiTable (AcpiProtocol, InstalledKey[Installed]);\r
     }\r
   } else {\r
-    DEBUG ((EFI_D_INFO, "%a: installed %d tables\n", __FUNCTION__, Installed));\r
+    DEBUG ((DEBUG_INFO, "%a: installed %d tables\n", __FUNCTION__, Installed));\r
   }\r
 \r
   for (SeenPointerEntry = OrderedCollectionMin (SeenPointers);\r
@@ -1172,7 +1172,7 @@ RollbackWritePointersAndFreeTracker:
     Blob = UserStruct;\r
 \r
     if (EFI_ERROR (Status) || Blob->HostsOnlyTableData) {\r
-      DEBUG ((EFI_D_VERBOSE, "%a: freeing \"%a\"\n", __FUNCTION__,\r
+      DEBUG ((DEBUG_VERBOSE, "%a: freeing \"%a\"\n", __FUNCTION__,\r
         Blob->File));\r
       gBS->FreePages ((UINTN)Blob->Base, EFI_SIZE_TO_PAGES (Blob->Size));\r
     }\r
index 0a189bc59205e4b594bb75532dc0e2cb3dc922cf..5a52298983e5f818c44364830041001a49a15e91 100644 (file)
@@ -711,7 +711,7 @@ BiosVideoChildHandleInstall (
   //\r
   if (FeaturePcdGet (PcdBiosVideoCheckVbeEnable)) {\r
     Status = BiosVideoCheckForVbe (BiosVideoPrivate);\r
-    DEBUG ((EFI_D_INFO, "BiosVideoCheckForVbe - %r\n", Status));\r
+    DEBUG ((DEBUG_INFO, "BiosVideoCheckForVbe - %r\n", Status));\r
   } else {\r
     Status = EFI_UNSUPPORTED;\r
   }\r
@@ -720,11 +720,11 @@ BiosVideoChildHandleInstall (
     // The VESA BIOS Extensions are not compatible with Graphics Output, so check for support\r
     // for the standard 640x480 16 color VGA mode\r
     //\r
-    DEBUG ((EFI_D_INFO, "VgaCompatible - %x\n", BiosVideoPrivate->VgaCompatible));\r
+    DEBUG ((DEBUG_INFO, "VgaCompatible - %x\n", BiosVideoPrivate->VgaCompatible));\r
     if (BiosVideoPrivate->VgaCompatible) {\r
       if (FeaturePcdGet (PcdBiosVideoCheckVgaEnable)) {\r
         Status = BiosVideoCheckForVga (BiosVideoPrivate);\r
-        DEBUG ((EFI_D_INFO, "BiosVideoCheckForVga - %r\n", Status));\r
+        DEBUG ((DEBUG_INFO, "BiosVideoCheckForVga - %r\n", Status));\r
       } else {\r
         Status = EFI_UNSUPPORTED;\r
       }\r
@@ -1122,7 +1122,7 @@ ParseEdidData (
                  ((EdidDataBlock->EstablishedTimings[2] & 0x80) << 9) ;\r
     for (Index = 0; Index < VESA_BIOS_EXTENSIONS_EDID_ESTABLISHED_TIMING_MAX_NUMBER; Index ++) {\r
       if ((TimingBits & 0x1) != 0) {\r
-        DEBUG ((EFI_D_INFO, "Established Timing: %d x %d\n",\r
+        DEBUG ((DEBUG_INFO, "Established Timing: %d x %d\n",\r
         mEstablishedEdidTiming[Index].HorizontalResolution, mEstablishedEdidTiming[Index].VerticalResolution));\r
         ValidEdidTiming->Key[ValidNumber] = CalculateEdidKey (&mEstablishedEdidTiming[Index]);\r
         ValidNumber ++;\r
@@ -1164,7 +1164,7 @@ ParseEdidData (
           break;\r
       }\r
       RefreshRate = (UINT8) ((BufferIndex[1] & 0x1f) + 60);\r
-      DEBUG ((EFI_D_INFO, "Standard Timing: %d x %d\n", HorizontalResolution, VerticalResolution));\r
+      DEBUG ((DEBUG_INFO, "Standard Timing: %d x %d\n", HorizontalResolution, VerticalResolution));\r
       TempTiming.HorizontalResolution = HorizontalResolution;\r
       TempTiming.VerticalResolution = VerticalResolution;\r
       TempTiming.RefreshRate = RefreshRate;\r
@@ -1191,7 +1191,7 @@ ParseEdidData (
     //\r
     TempTiming.HorizontalResolution = ((UINT16)(BufferIndex[4] & 0xF0) << 4) | (BufferIndex[2]);\r
     TempTiming.VerticalResolution = ((UINT16)(BufferIndex[7] & 0xF0) << 4) | (BufferIndex[5]);\r
-    DEBUG ((EFI_D_INFO, "Detailed Timing %d: %d x %d\n",\r
+    DEBUG ((DEBUG_INFO, "Detailed Timing %d: %d x %d\n",\r
             Index, TempTiming.HorizontalResolution, TempTiming.VerticalResolution));\r
     ValidEdidTiming->Key[ValidNumber] = CalculateEdidKey (&TempTiming);\r
     ValidNumber ++;\r
@@ -1572,7 +1572,7 @@ BiosVideoCheckForVbe (
       continue;\r
     }\r
 \r
-    DEBUG ((EFI_D_INFO, "Video Controller Mode 0x%x: %d x %d\n",\r
+    DEBUG ((DEBUG_INFO, "Video Controller Mode 0x%x: %d x %d\n",\r
             VbeModeNumber, BiosVideoPrivate->VbeModeInformationBlock->XResolution, BiosVideoPrivate->VbeModeInformationBlock->YResolution));\r
 \r
     if (EdidFound && (ValidEdidTiming.ValidNumber > 0)) {\r
@@ -1737,7 +1737,7 @@ BiosVideoCheckForVbe (
     DEBUG_CODE (\r
       BIOS_VIDEO_MODE_DATA    *ModeData;\r
       ModeData = &BiosVideoPrivate->ModeData[HighestResolutionMode];\r
-      DEBUG ((EFI_D_INFO, "BiosVideo set highest resolution %d x %d\n",\r
+      DEBUG ((DEBUG_INFO, "BiosVideo set highest resolution %d x %d\n",\r
               ModeData->HorizontalResolution, ModeData->VerticalResolution));\r
     );\r
     PreferMode = HighestResolutionMode;\r
index 2928e26329300a8c935d2619614dec296c3ff5bb..97ca21945fe7a0106918633bb730411126ba449f 100644 (file)
@@ -192,7 +192,7 @@ LegacyInterruptInstall (
       mLegacyInterruptDevice = LEGACY_INT_DEV_Q35;\r
       break;\r
     default:\r
-      DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
+      DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
         __FUNCTION__, HostBridgeDevId));\r
       ASSERT (FALSE);\r
       return EFI_UNSUPPORTED;\r
index 9c60c4a4cfc43c8c8b437b21c2981e94ded8937b..96f9934b2086454f39108d2e7a37d1e7b5b7ea51 100644 (file)
@@ -309,7 +309,7 @@ GetSelectedVgaDeviceInfo (
       if (!IS_PCI_VGA (&Pci)) {\r
         continue;\r
       }\r
-      DEBUG ((EFI_D_INFO,\r
+      DEBUG ((DEBUG_INFO,\r
         "PCI VGA: 0x%04x:0x%04x\n",\r
         Pci.Hdr.VendorId,\r
         Pci.Hdr.DeviceId\r
index 73276dc228b53b2f8f8e89a48c24a68fd8d10003..fe9ae27c9d919ce69094a752a27aef6763bda359 100644 (file)
@@ -477,7 +477,7 @@ LegacyRegionInit (
     mRegisterValues = mRegisterValuesQ35;\r
     break;\r
   default:\r
-    DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
             __FUNCTION__, HostBridgeDevId));\r
     ASSERT (FALSE);\r
     return RETURN_UNSUPPORTED;\r
index dd3608a64ece3d1d985e579abc523a0170d9dc2f..3ce19496b07d208973f97f0a9dacb1d58a1f7625 100644 (file)
@@ -364,7 +364,7 @@ ShadowAndStartLegacy16 (
   }\r
 \r
   if (Table == NULL) {\r
-    DEBUG ((EFI_D_ERROR, "No Legacy16 table found\n"));\r
+    DEBUG ((DEBUG_ERROR, "No Legacy16 table found\n"));\r
     return EFI_NOT_FOUND;\r
   }\r
 \r
@@ -372,7 +372,7 @@ ShadowAndStartLegacy16 (
     //\r
     // Legacy16 table header checksum error.\r
     //\r
-    DEBUG ((EFI_D_ERROR, "Legacy16 table found with bad talbe header checksum\n"));\r
+    DEBUG ((DEBUG_ERROR, "Legacy16 table found with bad talbe header checksum\n"));\r
   }\r
 \r
   //\r
@@ -483,7 +483,7 @@ ShadowAndStartLegacy16 (
   Table->E820Pointer  = (UINT32) (Regs.X.DS * 16 + Regs.X.BX);\r
   Table->E820Length   = (UINT32) E820Size;\r
   if (Regs.X.AX != 0) {\r
-    DEBUG ((EFI_D_ERROR, "Legacy16 E820 length insufficient\n"));\r
+    DEBUG ((DEBUG_ERROR, "Legacy16 E820 length insufficient\n"));\r
   } else {\r
     TempData = Table->E820Pointer;\r
     CopyMem ((VOID *) TempData, Private->E820Table, E820Size);\r
@@ -543,7 +543,7 @@ ShadowAndStartLegacy16 (
 \r
     TpmPointer = (UINT32) (Regs.X.DS * 16 + Regs.X.BX);\r
     if (Regs.X.AX != 0) {\r
-      DEBUG ((EFI_D_ERROR, "TPM cannot be loaded\n"));\r
+      DEBUG ((DEBUG_ERROR, "TPM cannot be loaded\n"));\r
     } else {\r
       CopyMem ((VOID *) (UINTN)TpmPointer, TpmBinaryImage, TpmBinaryImageSize);\r
       Table->TpmSegment = Regs.X.DS;\r
@@ -738,7 +738,7 @@ InstallSmbiosEventCallback (
       mReserveSmbiosEntryPoint = 0;\r
       return;\r
     }\r
-    DEBUG ((EFI_D_INFO, "Allocate memory for Smbios Entry Point Structure\n"));\r
+    DEBUG ((DEBUG_INFO, "Allocate memory for Smbios Entry Point Structure\n"));\r
   }\r
 \r
   if ((mStructureTableAddress != 0) &&\r
@@ -749,7 +749,7 @@ InstallSmbiosEventCallback (
     gBS->FreePages (mStructureTableAddress, mStructureTablePages);\r
     mStructureTableAddress = 0;\r
     mStructureTablePages   = 0;\r
-    DEBUG ((EFI_D_INFO, "Original size is not enough. Re-allocate the memory.\n"));\r
+    DEBUG ((DEBUG_INFO, "Original size is not enough. Re-allocate the memory.\n"));\r
   }\r
 \r
   if (mStructureTableAddress == 0) {\r
@@ -775,7 +775,7 @@ InstallSmbiosEventCallback (
       mStructureTablePages     = 0;\r
       return;\r
     }\r
-    DEBUG ((EFI_D_INFO, "Allocate memory for Smbios Structure Table\n"));\r
+    DEBUG ((DEBUG_INFO, "Allocate memory for Smbios Structure Table\n"));\r
   }\r
 }\r
 \r
@@ -1051,7 +1051,7 @@ LegacyBiosInstall (
       MemoryPtr = (VOID *) ((UINTN) StartAddress);\r
       ZeroMem (MemoryPtr, 0x1000);\r
     } else {\r
-      DEBUG ((EFI_D_ERROR, "WARNING: Allocate legacy memory fail for SCSI card - %x\n", MemStart));\r
+      DEBUG ((DEBUG_ERROR, "WARNING: Allocate legacy memory fail for SCSI card - %x\n", MemStart));\r
     }\r
   }\r
 \r
@@ -1206,7 +1206,7 @@ LegacyBiosInstall (
                   );\r
   Private->Csm16PciInterfaceVersion = GetPciInterfaceVersion (Private);\r
 \r
-  DEBUG ((EFI_D_INFO, "CSM16 PCI BIOS Interface Version: %02x.%02x\n",\r
+  DEBUG ((DEBUG_INFO, "CSM16 PCI BIOS Interface Version: %02x.%02x\n",\r
           (UINT8) (Private->Csm16PciInterfaceVersion >> 8),\r
           (UINT8) Private->Csm16PciInterfaceVersion\r
         ));\r
index 20784504d5016a5c2d56b2bc3f2727f1704bf961..9a09d7230777be36f9c873c48d736375216a0514 100644 (file)
@@ -46,9 +46,9 @@ PrintBbsTable (
   UINT16 SubIndex;\r
   CHAR8  *String;\r
 \r
-  DEBUG ((EFI_D_INFO, "\n"));\r
-  DEBUG ((EFI_D_INFO, " NO  Prio bb/dd/ff cl/sc Type Stat segm:offs mfgs:mfgo dess:deso\n"));\r
-  DEBUG ((EFI_D_INFO, "=================================================================\n"));\r
+  DEBUG ((DEBUG_INFO, "\n"));\r
+  DEBUG ((DEBUG_INFO, " NO  Prio bb/dd/ff cl/sc Type Stat segm:offs mfgs:mfgo dess:deso\n"));\r
+  DEBUG ((DEBUG_INFO, "=================================================================\n"));\r
   for (Index = 0; Index < MAX_BBS_ENTRIES; Index++) {\r
     //\r
     // Filter\r
@@ -58,7 +58,7 @@ PrintBbsTable (
     }\r
 \r
     DEBUG ((\r
-      EFI_D_INFO,\r
+      DEBUG_INFO,\r
       " %02x: %04x %02x/%02x/%02x %02x/%02x %04x %04x",\r
       (UINTN) Index,\r
       (UINTN) BbsTable[Index].BootPriority,\r
@@ -71,7 +71,7 @@ PrintBbsTable (
       (UINTN) * (UINT16 *) &BbsTable[Index].StatusFlags\r
       ));\r
     DEBUG ((\r
-      EFI_D_INFO,\r
+      DEBUG_INFO,\r
       " %04x:%04x %04x:%04x %04x:%04x",\r
       (UINTN) BbsTable[Index].BootHandlerSegment,\r
       (UINTN) BbsTable[Index].BootHandlerOffset,\r
@@ -86,16 +86,16 @@ PrintBbsTable (
     //\r
     String = (CHAR8 *)(((UINTN)BbsTable[Index].DescStringSegment << 4) + BbsTable[Index].DescStringOffset);\r
     if (String != NULL) {\r
-      DEBUG ((EFI_D_INFO," ("));\r
+      DEBUG ((DEBUG_INFO," ("));\r
       for (SubIndex = 0; String[SubIndex] != 0; SubIndex++) {\r
-        DEBUG ((EFI_D_INFO, "%c", String[SubIndex]));\r
+        DEBUG ((DEBUG_INFO, "%c", String[SubIndex]));\r
       }\r
-      DEBUG ((EFI_D_INFO,")"));\r
+      DEBUG ((DEBUG_INFO,")"));\r
     }\r
-    DEBUG ((EFI_D_INFO,"\n"));\r
+    DEBUG ((DEBUG_INFO,"\n"));\r
   }\r
 \r
-  DEBUG ((EFI_D_INFO, "\n"));\r
+  DEBUG ((DEBUG_INFO, "\n"));\r
 \r
   return ;\r
 }\r
@@ -114,20 +114,20 @@ PrintHddInfo (
 {\r
   UINTN Index;\r
 \r
-  DEBUG ((EFI_D_INFO, "\n"));\r
+  DEBUG ((DEBUG_INFO, "\n"));\r
   for (Index = 0; Index < MAX_IDE_CONTROLLER; Index++) {\r
-    DEBUG ((EFI_D_INFO, "Index - %04x\n", Index));\r
-    DEBUG ((EFI_D_INFO, "  Status    - %04x\n", (UINTN)HddInfo[Index].Status));\r
-    DEBUG ((EFI_D_INFO, "  B/D/F     - %02x/%02x/%02x\n", (UINTN)HddInfo[Index].Bus, (UINTN)HddInfo[Index].Device, (UINTN)HddInfo[Index].Function));\r
-    DEBUG ((EFI_D_INFO, "  Command   - %04x\n", HddInfo[Index].CommandBaseAddress));\r
-    DEBUG ((EFI_D_INFO, "  Control   - %04x\n", HddInfo[Index].ControlBaseAddress));\r
-    DEBUG ((EFI_D_INFO, "  BusMaster - %04x\n", HddInfo[Index].BusMasterAddress));\r
-    DEBUG ((EFI_D_INFO, "  HddIrq    - %02x\n", HddInfo[Index].HddIrq));\r
-    DEBUG ((EFI_D_INFO, "  IdentifyDrive[0].Raw[0] - %x\n", HddInfo[Index].IdentifyDrive[0].Raw[0]));\r
-    DEBUG ((EFI_D_INFO, "  IdentifyDrive[1].Raw[0] - %x\n", HddInfo[Index].IdentifyDrive[1].Raw[0]));\r
+    DEBUG ((DEBUG_INFO, "Index - %04x\n", Index));\r
+    DEBUG ((DEBUG_INFO, "  Status    - %04x\n", (UINTN)HddInfo[Index].Status));\r
+    DEBUG ((DEBUG_INFO, "  B/D/F     - %02x/%02x/%02x\n", (UINTN)HddInfo[Index].Bus, (UINTN)HddInfo[Index].Device, (UINTN)HddInfo[Index].Function));\r
+    DEBUG ((DEBUG_INFO, "  Command   - %04x\n", HddInfo[Index].CommandBaseAddress));\r
+    DEBUG ((DEBUG_INFO, "  Control   - %04x\n", HddInfo[Index].ControlBaseAddress));\r
+    DEBUG ((DEBUG_INFO, "  BusMaster - %04x\n", HddInfo[Index].BusMasterAddress));\r
+    DEBUG ((DEBUG_INFO, "  HddIrq    - %02x\n", HddInfo[Index].HddIrq));\r
+    DEBUG ((DEBUG_INFO, "  IdentifyDrive[0].Raw[0] - %x\n", HddInfo[Index].IdentifyDrive[0].Raw[0]));\r
+    DEBUG ((DEBUG_INFO, "  IdentifyDrive[1].Raw[0] - %x\n", HddInfo[Index].IdentifyDrive[1].Raw[0]));\r
   }\r
 \r
-  DEBUG ((EFI_D_INFO, "\n"));\r
+  DEBUG ((DEBUG_INFO, "\n"));\r
 \r
   return ;\r
 }\r
@@ -163,9 +163,9 @@ PrintPciInterruptRegister (
   Device   = 0;\r
   Function = 0;\r
 \r
-  DEBUG ((EFI_D_INFO, "\n"));\r
-  DEBUG ((EFI_D_INFO, " bb/dd/ff interrupt line interrupt pin\n"));\r
-  DEBUG ((EFI_D_INFO, "======================================\n"));\r
+  DEBUG ((DEBUG_INFO, "\n"));\r
+  DEBUG ((DEBUG_INFO, " bb/dd/ff interrupt line interrupt pin\n"));\r
+  DEBUG ((DEBUG_INFO, "======================================\n"));\r
   for (Index = 0; Index < HandleNum; Index++) {\r
     Status = gBS->HandleProtocol (Handles[Index], &gEfiPciIoProtocolGuid, (VOID **) &PciIo);\r
     if (!EFI_ERROR (Status)) {\r
@@ -187,11 +187,11 @@ PrintPciInterruptRegister (
                         );\r
     }\r
     if (!EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_INFO, " %02x/%02x/%02x 0x%02x           0x%02x\n",\r
+      DEBUG ((DEBUG_INFO, " %02x/%02x/%02x 0x%02x           0x%02x\n",\r
               Bus, Device, Function, Interrupt[0], Interrupt[1]));\r
     }\r
   }\r
-  DEBUG ((EFI_D_INFO, "\n"));\r
+  DEBUG ((DEBUG_INFO, "\n"));\r
 \r
   if (Handles != NULL) {\r
     FreePool (Handles);\r
@@ -667,8 +667,8 @@ LegacyGetDataOrTable (
                                       0,\r
                                       0\r
                                       );\r
-        DEBUG ((EFI_D_INFO, "LegacyGetDataOrTable - ID: %x, %r\n", (UINTN)Id, Status));\r
-        DEBUG ((EFI_D_INFO, "  Table - %x, Size - %x, Location - %x, Alignment - %x\n", (UINTN)Table, (UINTN)TableSize, (UINTN)Location, (UINTN)Alignment));\r
+        DEBUG ((DEBUG_INFO, "LegacyGetDataOrTable - ID: %x, %r\n", (UINTN)Id, Status));\r
+        DEBUG ((DEBUG_INFO, "  Table - %x, Size - %x, Location - %x, Alignment - %x\n", (UINTN)Table, (UINTN)TableSize, (UINTN)Location, (UINTN)Alignment));\r
         break;\r
       }\r
 \r
@@ -697,7 +697,7 @@ LegacyGetDataOrTable (
       );\r
 \r
     if (Regs.X.AX != 0) {\r
-      DEBUG ((EFI_D_ERROR, "Table ID %x length insufficient\n", Id));\r
+      DEBUG ((DEBUG_ERROR, "Table ID %x length insufficient\n", Id));\r
       return EFI_OUT_OF_RESOURCES;\r
     } else {\r
       break;\r
@@ -721,7 +721,7 @@ LegacyGetDataOrTable (
     {\r
       Legacy16Table->MpTablePtr     = (UINT32) (Regs.X.DS * 16 + Regs.X.BX);\r
       Legacy16Table->MpTableLength  = (UINT32)TableSize;\r
-      DEBUG ((EFI_D_INFO, "MP table in legacy region - %x\n", (UINTN)Legacy16Table->MpTablePtr));\r
+      DEBUG ((DEBUG_INFO, "MP table in legacy region - %x\n", (UINTN)Legacy16Table->MpTablePtr));\r
       break;\r
     }\r
 \r
@@ -730,7 +730,7 @@ LegacyGetDataOrTable (
 \r
       Legacy16Table->OemIntSegment  = Regs.X.DS;\r
       Legacy16Table->OemIntOffset   = Regs.X.BX;\r
-      DEBUG ((EFI_D_INFO, "OemInt table in legacy region - %04x:%04x\n", (UINTN)Legacy16Table->OemIntSegment, (UINTN)Legacy16Table->OemIntOffset));\r
+      DEBUG ((DEBUG_INFO, "OemInt table in legacy region - %04x:%04x\n", (UINTN)Legacy16Table->OemIntSegment, (UINTN)Legacy16Table->OemIntOffset));\r
       break;\r
     }\r
 \r
@@ -738,7 +738,7 @@ LegacyGetDataOrTable (
     {\r
       Legacy16Table->Oem32Segment = Regs.X.DS;\r
       Legacy16Table->Oem32Offset  = Regs.X.BX;\r
-      DEBUG ((EFI_D_INFO, "Oem32 table in legacy region - %04x:%04x\n", (UINTN)Legacy16Table->Oem32Segment, (UINTN)Legacy16Table->Oem32Offset));\r
+      DEBUG ((DEBUG_INFO, "Oem32 table in legacy region - %04x:%04x\n", (UINTN)Legacy16Table->Oem32Segment, (UINTN)Legacy16Table->Oem32Offset));\r
       break;\r
     }\r
 \r
@@ -747,7 +747,7 @@ LegacyGetDataOrTable (
       //\r
       //          Legacy16Table->Oem16Segment = Regs.X.DS;\r
       //          Legacy16Table->Oem16Offset  = Regs.X.BX;\r
-      DEBUG ((EFI_D_INFO, "Oem16 table in legacy region - %04x:%04x\n", (UINTN)Legacy16Table->Oem16Segment, (UINTN)Legacy16Table->Oem16Offset));\r
+      DEBUG ((DEBUG_INFO, "Oem16 table in legacy region - %04x:%04x\n", (UINTN)Legacy16Table->Oem16Segment, (UINTN)Legacy16Table->Oem16Offset));\r
       break;\r
     }\r
 \r
@@ -880,7 +880,7 @@ GenericLegacyBoot (
 \r
   Private       = LEGACY_BIOS_INSTANCE_FROM_THIS (This);\r
   DEBUG_CODE (\r
-    DEBUG ((EFI_D_ERROR, "Start of legacy boot\n"));\r
+    DEBUG ((DEBUG_ERROR, "Start of legacy boot\n"));\r
   );\r
 \r
   Legacy16Table                         = Private->Legacy16Table;\r
@@ -943,7 +943,7 @@ GenericLegacyBoot (
     Private->Legacy16Table->E820Pointer = (UINT32) (Regs.X.DS * 16 + Regs.X.BX);\r
     Private->Legacy16Table->E820Length  = (UINT32) CopySize;\r
     if (Regs.X.AX != 0) {\r
-      DEBUG ((EFI_D_ERROR, "Legacy16 E820 length insufficient\n"));\r
+      DEBUG ((DEBUG_ERROR, "Legacy16 E820 length insufficient\n"));\r
       return EFI_OUT_OF_RESOURCES;\r
     } else {\r
       CopyMem (\r
@@ -965,7 +965,7 @@ GenericLegacyBoot (
   // We do not ASSERT if SmbiosTable not found. It is possible that a platform does not produce SmbiosTable.\r
   //\r
   if (mReserveSmbiosEntryPoint == 0) {\r
-    DEBUG ((EFI_D_INFO, "Smbios table is not found!\n"));\r
+    DEBUG ((DEBUG_INFO, "Smbios table is not found!\n"));\r
   }\r
   CreateSmbiosTableInReservedMemory ();\r
   EfiToLegacy16BootTable->SmbiosTable = (UINT32)(UINTN)mReserveSmbiosEntryPoint;\r
@@ -985,7 +985,7 @@ GenericLegacyBoot (
   // We do not ASSERT if AcpiTable not found. It is possible that a platform does not produce AcpiTable.\r
   //\r
   if (AcpiTable == NULL) {\r
-    DEBUG ((EFI_D_INFO, "ACPI table is not found!\n"));\r
+    DEBUG ((DEBUG_INFO, "ACPI table is not found!\n"));\r
   }\r
   EfiToLegacy16BootTable->AcpiTable = (UINT32)(UINTN)AcpiTable;\r
 \r
@@ -1245,7 +1245,7 @@ GenericLegacyBoot (
     // Here we could reduce UmaAddress down as far as Private->OptionRom, taking into\r
     // account the granularity of the access control.\r
     //\r
-    DEBUG((EFI_D_INFO, "Unlocking UMB RAM region 0x%x-0x%x\n", Private->Legacy16Table->UmaAddress,\r
+    DEBUG((DEBUG_INFO, "Unlocking UMB RAM region 0x%x-0x%x\n", Private->Legacy16Table->UmaAddress,\r
                         Private->Legacy16Table->UmaAddress + Private->Legacy16Table->UmaSize));\r
 \r
     Private->LegacyRegion->UnLock (\r
@@ -1285,7 +1285,7 @@ GenericLegacyBoot (
       (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_LEGACY_BOOT_EVENT)\r
       );\r
 \r
-    DEBUG ((EFI_D_INFO, "Legacy INT19 Boot...\n"));\r
+    DEBUG ((DEBUG_INFO, "Legacy INT19 Boot...\n"));\r
 \r
     //\r
     // Disable DXE Timer while executing in real mode\r
@@ -1944,7 +1944,7 @@ LegacyBiosBuildE820 (
   // Print DEBUG information\r
   //\r
   for (TempIndex = 0; TempIndex < Index; TempIndex++) {\r
-    DEBUG((EFI_D_INFO, "E820[%2d]: 0x%016lx - 0x%016lx, Type = %d\n",\r
+    DEBUG((DEBUG_INFO, "E820[%2d]: 0x%016lx - 0x%016lx, Type = %d\n",\r
       TempIndex,\r
       E820Table[TempIndex].BaseAddr,\r
       (E820Table[TempIndex].BaseAddr + E820Table[TempIndex].Length),\r
index 2656dafde943c6ca368bdf8c8e37ccce359b2bd7..746b366448e6c6b5e6361c0334bf7f0a19399c93 100644 (file)
@@ -374,7 +374,7 @@ GetPciLegacyRom (
           }\r
         }\r
       } else {\r
-        DEBUG ((EFI_D_ERROR, "GetPciLegacyRom - OpRom not match (%04x-%04x)\n", (UINTN)VendorId, (UINTN)DeviceId));\r
+        DEBUG ((DEBUG_ERROR, "GetPciLegacyRom - OpRom not match (%04x-%04x)\n", (UINTN)VendorId, (UINTN)DeviceId));\r
       }\r
     }\r
 \r
@@ -752,7 +752,7 @@ Rotate (B,C,D,A) by 1 giving C,D,A,B. Translated PIRQ is C.
   // In case we fail to find the Bridge just above us, this is some potential error and we want to warn the user\r
   //\r
   if(BridgeIndex >= NumberOfBridges){\r
-    DEBUG ((EFI_D_ERROR, "Cannot Find IRQ Routing for Bus %d, Device %d, Function %d\n", *PciBus, *PciDevice, *PciFunction));\r
+    DEBUG ((DEBUG_ERROR, "Cannot Find IRQ Routing for Bus %d, Device %d, Function %d\n", *PciBus, *PciDevice, *PciFunction));\r
   }\r
 \r
   *PirqIndex    = LocalPirqIndex;\r
@@ -823,9 +823,9 @@ CopyPirqTable (
 \r
     Private->Legacy16Table->IrqRoutingTablePointer = (UINT32) (Regs.X.DS * 16 + Regs.X.BX);\r
     if (Regs.X.AX != 0) {\r
-      DEBUG ((EFI_D_ERROR, "PIRQ table length insufficient - %x\n", PirqTableSize));\r
+      DEBUG ((DEBUG_ERROR, "PIRQ table length insufficient - %x\n", PirqTableSize));\r
     } else {\r
-      DEBUG ((EFI_D_INFO, "PIRQ table in legacy region - %x\n", Private->Legacy16Table->IrqRoutingTablePointer));\r
+      DEBUG ((DEBUG_INFO, "PIRQ table in legacy region - %x\n", Private->Legacy16Table->IrqRoutingTablePointer));\r
       Private->Legacy16Table->IrqRoutingTableLength = (UINT32)PirqTableSize;\r
       CopyMem (\r
         (VOID *) (UINTN)Private->Legacy16Table->IrqRoutingTablePointer,\r
@@ -858,24 +858,24 @@ DumpPciHandle (
   IN EFI_LEGACY_INSTALL_PCI_HANDLER  *PciHandle\r
   )\r
 {\r
-  DEBUG ((EFI_D_INFO, "PciBus             - %02x\n", (UINTN)PciHandle->PciBus));\r
-  DEBUG ((EFI_D_INFO, "PciDeviceFun       - %02x\n", (UINTN)PciHandle->PciDeviceFun));\r
-  DEBUG ((EFI_D_INFO, "PciSegment         - %02x\n", (UINTN)PciHandle->PciSegment));\r
-  DEBUG ((EFI_D_INFO, "PciClass           - %02x\n", (UINTN)PciHandle->PciClass));\r
-  DEBUG ((EFI_D_INFO, "PciSubclass        - %02x\n", (UINTN)PciHandle->PciSubclass));\r
-  DEBUG ((EFI_D_INFO, "PciInterface       - %02x\n", (UINTN)PciHandle->PciInterface));\r
-\r
-  DEBUG ((EFI_D_INFO, "PrimaryIrq         - %02x\n", (UINTN)PciHandle->PrimaryIrq));\r
-  DEBUG ((EFI_D_INFO, "PrimaryReserved    - %02x\n", (UINTN)PciHandle->PrimaryReserved));\r
-  DEBUG ((EFI_D_INFO, "PrimaryControl     - %04x\n", (UINTN)PciHandle->PrimaryControl));\r
-  DEBUG ((EFI_D_INFO, "PrimaryBase        - %04x\n", (UINTN)PciHandle->PrimaryBase));\r
-  DEBUG ((EFI_D_INFO, "PrimaryBusMaster   - %04x\n", (UINTN)PciHandle->PrimaryBusMaster));\r
-\r
-  DEBUG ((EFI_D_INFO, "SecondaryIrq       - %02x\n", (UINTN)PciHandle->SecondaryIrq));\r
-  DEBUG ((EFI_D_INFO, "SecondaryReserved  - %02x\n", (UINTN)PciHandle->SecondaryReserved));\r
-  DEBUG ((EFI_D_INFO, "SecondaryControl   - %04x\n", (UINTN)PciHandle->SecondaryControl));\r
-  DEBUG ((EFI_D_INFO, "SecondaryBase      - %04x\n", (UINTN)PciHandle->SecondaryBase));\r
-  DEBUG ((EFI_D_INFO, "SecondaryBusMaster - %04x\n", (UINTN)PciHandle->SecondaryBusMaster));\r
+  DEBUG ((DEBUG_INFO, "PciBus             - %02x\n", (UINTN)PciHandle->PciBus));\r
+  DEBUG ((DEBUG_INFO, "PciDeviceFun       - %02x\n", (UINTN)PciHandle->PciDeviceFun));\r
+  DEBUG ((DEBUG_INFO, "PciSegment         - %02x\n", (UINTN)PciHandle->PciSegment));\r
+  DEBUG ((DEBUG_INFO, "PciClass           - %02x\n", (UINTN)PciHandle->PciClass));\r
+  DEBUG ((DEBUG_INFO, "PciSubclass        - %02x\n", (UINTN)PciHandle->PciSubclass));\r
+  DEBUG ((DEBUG_INFO, "PciInterface       - %02x\n", (UINTN)PciHandle->PciInterface));\r
+\r
+  DEBUG ((DEBUG_INFO, "PrimaryIrq         - %02x\n", (UINTN)PciHandle->PrimaryIrq));\r
+  DEBUG ((DEBUG_INFO, "PrimaryReserved    - %02x\n", (UINTN)PciHandle->PrimaryReserved));\r
+  DEBUG ((DEBUG_INFO, "PrimaryControl     - %04x\n", (UINTN)PciHandle->PrimaryControl));\r
+  DEBUG ((DEBUG_INFO, "PrimaryBase        - %04x\n", (UINTN)PciHandle->PrimaryBase));\r
+  DEBUG ((DEBUG_INFO, "PrimaryBusMaster   - %04x\n", (UINTN)PciHandle->PrimaryBusMaster));\r
+\r
+  DEBUG ((DEBUG_INFO, "SecondaryIrq       - %02x\n", (UINTN)PciHandle->SecondaryIrq));\r
+  DEBUG ((DEBUG_INFO, "SecondaryReserved  - %02x\n", (UINTN)PciHandle->SecondaryReserved));\r
+  DEBUG ((DEBUG_INFO, "SecondaryControl   - %04x\n", (UINTN)PciHandle->SecondaryControl));\r
+  DEBUG ((DEBUG_INFO, "SecondaryBase      - %04x\n", (UINTN)PciHandle->SecondaryBase));\r
+  DEBUG ((DEBUG_INFO, "SecondaryBusMaster - %04x\n", (UINTN)PciHandle->SecondaryBusMaster));\r
   return;\r
 }\r
 \r
@@ -1254,7 +1254,7 @@ PciProgramAllInterruptLineRegisters (
       // If it does return failure status, check your PIRQ routing table to see if some item is missing or incorrect\r
       //\r
       if (EFI_ERROR (Status)) {\r
-        DEBUG ((EFI_D_ERROR, "Translate Pirq Failed - Status = %r\n ", Status));\r
+        DEBUG ((DEBUG_ERROR, "Translate Pirq Failed - Status = %r\n ", Status));\r
         continue;\r
       }\r
 \r
@@ -2110,7 +2110,7 @@ LegacyBiosInstallVgaRom (
         // This should be video thunk driver which is managing video device\r
         // So it need not start again\r
         //\r
-        DEBUG ((EFI_D_INFO, "Video thunk driver already start! Return!\n"));\r
+        DEBUG ((DEBUG_INFO, "Video thunk driver already start! Return!\n"));\r
         Private->VgaInstalled = TRUE;\r
         return EFI_SUCCESS;\r
       }\r
@@ -2321,7 +2321,7 @@ LegacyBiosInstallRom (
                     );\r
 \r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RESOURCES (no more space for OpROM)\n", __LINE__));\r
+      DEBUG ((DEBUG_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RESOURCES (no more space for OpROM)\n", __LINE__));\r
       //\r
       // Report Status Code to indicate that there is no enough space for OpROM\r
       //\r
@@ -2337,7 +2337,7 @@ LegacyBiosInstallRom (
     //\r
     RuntimeAddress = Private->OptionRom;\r
     if (RuntimeAddress + *RuntimeImageLength > MaxRomAddr) {\r
-      DEBUG ((EFI_D_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RESOURCES (no more space for OpROM)\n", __LINE__));\r
+      DEBUG ((DEBUG_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RESOURCES (no more space for OpROM)\n", __LINE__));\r
       gBS->FreePages (PhysicalAddress, EFI_SIZE_TO_PAGES (ImageSize));\r
       //\r
       // Report Status Code to indicate that there is no enough space for OpROM\r
@@ -2355,7 +2355,7 @@ LegacyBiosInstallRom (
     //\r
     InitAddress    = PCI_START_ADDRESS (Private->OptionRom);\r
     if (InitAddress + ImageSize > MaxRomAddr) {\r
-      DEBUG ((EFI_D_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RESOURCES (no more space for OpROM)\n", __LINE__));\r
+      DEBUG ((DEBUG_ERROR, "return LegacyBiosInstallRom(%d): EFI_OUT_OF_RESOURCES (no more space for OpROM)\n", __LINE__));\r
       //\r
       // Report Status Code to indicate that there is no enough space for OpROM\r
       //\r
@@ -2383,7 +2383,7 @@ LegacyBiosInstallRom (
                            &Granularity\r
                            );\r
 \r
-  DEBUG ((EFI_D_INFO, " Shadowing OpROM init/runtime/isize = %x/%x/%x\n", InitAddress, RuntimeAddress, ImageSize));\r
+  DEBUG ((DEBUG_INFO, " Shadowing OpROM init/runtime/isize = %x/%x/%x\n", InitAddress, RuntimeAddress, ImageSize));\r
 \r
   CopyMem ((VOID *) InitAddress, RomImage, ImageSize);\r
 \r
@@ -2501,7 +2501,7 @@ LegacyBiosInstallRom (
              &Device,\r
              &Function\r
              );\r
-    DEBUG ((EFI_D_INFO, "Shadowing OpROM on the PCI device %x/%x/%x\n", Bus, Device, Function));\r
+    DEBUG ((DEBUG_INFO, "Shadowing OpROM on the PCI device %x/%x/%x\n", Bus, Device, Function));\r
   }\r
 \r
   mIgnoreBbsUpdateFlag  = FALSE;\r
@@ -2526,7 +2526,7 @@ LegacyBiosInstallRom (
   // Otherwise, it may cause the system to hang in some cases\r
   //\r
   if (!EFI_ERROR (PciEnableStatus)) {\r
-    DEBUG ((EFI_D_INFO, " Legacy16DispatchOprom - %02x/%02x/%02x\n", Bus, Device, Function));\r
+    DEBUG ((DEBUG_INFO, " Legacy16DispatchOprom - %02x/%02x/%02x\n", Bus, Device, Function));\r
     Private->LegacyBios.FarCall86 (\r
       &Private->LegacyBios,\r
       Private->Legacy16CallSegment,\r
@@ -2594,7 +2594,7 @@ LegacyBiosInstallRom (
     *RuntimeImageLength = ((EFI_LEGACY_EXPANSION_ROM_HEADER *) RuntimeAddress)->Size512 * 512;\r
   }\r
 \r
-  DEBUG ((EFI_D_INFO, " fsize = %x\n", *RuntimeImageLength));\r
+  DEBUG ((DEBUG_INFO, " fsize = %x\n", *RuntimeImageLength));\r
 \r
   //\r
   // If OpROM runs in 2.0 mode\r
index 17720a74f7d5ca79a91ad897c04a6232b866f28e..6b9bb5ed8b2a6ee1d47c2ca7d8d0b38b13da2fad 100644 (file)
@@ -117,7 +117,7 @@ LegacyBiosBuildSioDataFromSio (
       }\r
     }\r
 \r
-    DEBUG ((EFI_D_INFO, "LegacySio: Address/Dma/Irq = %x/%d/%d\n", Address, Dma, Irq));\r
+    DEBUG ((DEBUG_INFO, "LegacySio: Address/Dma/Irq = %x/%d/%d\n", Address, Dma, Irq));\r
 \r
     DevicePath = DevicePathFromHandle (HandleBuffer[Index]);\r
     if (DevicePath == NULL) {\r
index 6432030a23aca190de81c18e57df24b535700540..d9828bb2f894a23c979533e3f2be40dfd71011a9 100644 (file)
@@ -242,7 +242,7 @@ InternalLegacyBiosFarCall (
       }\r
     }\r
     if (Count >= 2) {\r
-      DEBUG ((EFI_D_ERROR, "ERROR: More than one HW interrupt active with CSM enabled\n"));\r
+      DEBUG ((DEBUG_ERROR, "ERROR: More than one HW interrupt active with CSM enabled\n"));\r
     }\r
     ASSERT (Count < 2);\r
   );\r
index 35470abf914add447a3c93cf6cfb99a65d23dcf9..31e211a7b90492581acc31f5c0226d59b77b5b84 100644 (file)
@@ -808,7 +808,7 @@ UpdateLegacyDeviceOrderPage (
     break;\r
 \r
   default:\r
-    DEBUG ((EFI_D_ERROR, "Invalid command ID for updating page!\n"));\r
+    DEBUG ((DEBUG_ERROR, "Invalid command ID for updating page!\n"));\r
     return;\r
   }\r
 \r
index 6ed45785be72237d2a933445df3c77cab4b108fd..cd0e02060f20320bb4db454540f2c16a12cf7c2c 100644 (file)
@@ -440,7 +440,7 @@ LegacyBmDeleteAllInvalidBootOptions (
 \r
     BbsIndex = LegacyBmFuzzyMatch (&BootOption[Index], BbsTable, BbsCount, BbsIndexUsed);\r
     if (BbsIndex == BbsCount) {\r
-      DEBUG ((EFI_D_INFO, "[LegacyBds] Delete Boot Option Boot%04x: %s\n", (UINTN) BootOption[Index].OptionNumber, BootOption[Index].Description));\r
+      DEBUG ((DEBUG_INFO, "[LegacyBds] Delete Boot Option Boot%04x: %s\n", (UINTN) BootOption[Index].OptionNumber, BootOption[Index].Description));\r
       //\r
       // Delete entry from LegacyDevOrder\r
       //\r
@@ -454,7 +454,7 @@ LegacyBmDeleteAllInvalidBootOptions (
       EfiBootManagerDeleteLoadOptionVariable (BootOption[Index].OptionNumber, BootOption[Index].OptionType);\r
     } else {\r
       if (((LEGACY_BM_BOOT_OPTION_BBS_DATA *) BootOption[Index].OptionalData)->BbsIndex != BbsIndex) {\r
-        DEBUG ((EFI_D_INFO, "[LegacyBds] Update Boot Option Boot%04x: %s Bbs0x%04x->Bbs0x%04x\n", (UINTN) BootOption[Index].OptionNumber, BootOption[Index].Description,\r
+        DEBUG ((DEBUG_INFO, "[LegacyBds] Update Boot Option Boot%04x: %s Bbs0x%04x->Bbs0x%04x\n", (UINTN) BootOption[Index].OptionNumber, BootOption[Index].Description,\r
                 (UINTN) ((LEGACY_BM_BOOT_OPTION_BBS_DATA *) BootOption[Index].OptionalData)->BbsIndex, (UINTN) BbsIndex));\r
         //\r
         // Update the BBS index in LegacyDevOrder\r
@@ -1506,7 +1506,7 @@ LegacyBmRefreshAllBootOption (
     if (LegacyBmFindBootOption (&BootOptions[Index], ExistingBootOptions, ExistingBootOptionCount) == -1) {\r
       Status = EfiBootManagerAddLoadOptionVariable (&BootOptions[Index], (UINTN) -1);\r
       DEBUG ((\r
-        EFI_D_INFO, "[LegacyBds] New Boot Option: Boot%04x Bbs0x%04x %s %r\n",\r
+        DEBUG_INFO, "[LegacyBds] New Boot Option: Boot%04x Bbs0x%04x %s %r\n",\r
         (UINTN) BootOptions[Index].OptionNumber,\r
         (UINTN) ((LEGACY_BM_BOOT_OPTION_BBS_DATA *) BootOptions[Index].OptionalData)->BbsIndex,\r
         BootOptions[Index].Description,\r
index b6c6abef1ef2aed83e993fe35ccb96d7cb9627af..766ad1e59f472e8fe38f92e17b9fe77fc2c9df80 100644 (file)
@@ -579,7 +579,7 @@ ValidateFvHeader (
       (FwVolHeader->FvLength != EMU_FVB_SIZE) ||\r
       (FwVolHeader->HeaderLength != EMU_FV_HEADER_LENGTH)\r
       ) {\r
-    DEBUG ((EFI_D_INFO, "EMU Variable FVB: Basic FV headers were invalid\n"));\r
+    DEBUG ((DEBUG_INFO, "EMU Variable FVB: Basic FV headers were invalid\n"));\r
     return EFI_NOT_FOUND;\r
   }\r
   //\r
@@ -588,7 +588,7 @@ ValidateFvHeader (
   Checksum = CalculateSum16((VOID*) FwVolHeader, FwVolHeader->HeaderLength);\r
 \r
   if (Checksum != 0) {\r
-    DEBUG ((EFI_D_INFO, "EMU Variable FVB: FV checksum was invalid\n"));\r
+    DEBUG ((DEBUG_INFO, "EMU Variable FVB: FV checksum was invalid\n"));\r
     return EFI_NOT_FOUND;\r
   }\r
 \r
@@ -719,7 +719,7 @@ FvbInitialize (
   EFI_PHYSICAL_ADDRESS                Address;\r
   RETURN_STATUS                       PcdStatus;\r
 \r
-  DEBUG ((EFI_D_INFO, "EMU Variable FVB Started\n"));\r
+  DEBUG ((DEBUG_INFO, "EMU Variable FVB Started\n"));\r
 \r
   //\r
   // Verify that the PCD's are set correctly.\r
@@ -732,12 +732,12 @@ FvbInitialize (
        ) >\r
        EMU_FVB_NUM_SPARE_BLOCKS * EMU_FVB_BLOCK_SIZE\r
      ) {\r
-    DEBUG ((EFI_D_ERROR, "EMU Variable invalid PCD sizes\n"));\r
+    DEBUG ((DEBUG_ERROR, "EMU Variable invalid PCD sizes\n"));\r
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
   if (PcdGet64 (PcdFlashNvStorageVariableBase64) != 0) {\r
-    DEBUG ((EFI_D_INFO, "Disabling EMU Variable FVB since "\r
+    DEBUG ((DEBUG_INFO, "Disabling EMU Variable FVB since "\r
                         "flash variables appear to be supported.\n"));\r
     return EFI_ABORTED;\r
   }\r
@@ -754,13 +754,13 @@ FvbInitialize (
   if (PcdGet64 (PcdEmuVariableNvStoreReserved) != 0) {\r
     Ptr = (VOID*)(UINTN) PcdGet64 (PcdEmuVariableNvStoreReserved);\r
     DEBUG ((\r
-      EFI_D_INFO,\r
+      DEBUG_INFO,\r
       "EMU Variable FVB: Using pre-reserved block at %p\n",\r
       Ptr\r
       ));\r
     Status = ValidateFvHeader (Ptr);\r
     if (!EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_INFO, "EMU Variable FVB: Found valid pre-existing FV\n"));\r
+      DEBUG ((DEBUG_INFO, "EMU Variable FVB: Found valid pre-existing FV\n"));\r
       Initialize = FALSE;\r
     }\r
   } else {\r
@@ -806,7 +806,7 @@ FvbInitialize (
   //\r
   // Install the protocols\r
   //\r
-  DEBUG ((EFI_D_INFO, "Installing FVB for EMU Variable support\n"));\r
+  DEBUG ((DEBUG_INFO, "Installing FVB for EMU Variable support\n"));\r
   Handle = 0;\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &Handle,\r
index 21b49a8753e8759fe2a27c0fc8f96a795de46548..53c768167de9d0d89aea46f4b484f6ef8dbc2733 100644 (file)
@@ -233,7 +233,7 @@ CheckDevice (
   //\r
   *Configuration = AllocateCopyPool (sizeof mConfiguration, &mConfiguration);\r
   if (*Configuration == NULL) {\r
-    DEBUG ((EFI_D_WARN,\r
+    DEBUG ((DEBUG_WARN,\r
       "%a: 64-bit MMIO BARs may be degraded for PCI 0x%04x:0x%04x (rev %d)\n",\r
       __FUNCTION__, (UINT32)VendorId, (UINT32)DeviceId, (UINT8)RevisionId));\r
     return EFI_OUT_OF_RESOURCES;\r
index aa2b5faf1c0099eab66827e9d1730dec70245bd1..7c593e8be156b9cbe63c50154155b68023f06f15 100644 (file)
@@ -56,7 +56,7 @@ AcpiTimerLibConstructor (
       AcpiEnBit  = ICH9_ACPI_CNTL_ACPI_EN;\r
       break;\r
     default:\r
-      DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
+      DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
         __FUNCTION__, HostBridgeDevId));\r
       ASSERT (FALSE);\r
       return RETURN_UNSUPPORTED;\r
index dd022aceed2a92445c78457e61c539604e3e4db4..52f3ea2dbf16c72d6c853493e9206c21a2459392 100644 (file)
@@ -54,7 +54,7 @@ AcpiTimerLibConstructor (
       AcpiEnBit  = ICH9_ACPI_CNTL_ACPI_EN;\r
       break;\r
     default:\r
-      DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
+      DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
         __FUNCTION__, HostBridgeDevId));\r
       ASSERT (FALSE);\r
       return RETURN_UNSUPPORTED;\r
@@ -108,7 +108,7 @@ InternalAcpiGetTimerTick (
       Pmba = POWER_MGMT_REGISTER_Q35 (ICH9_PMBASE);\r
       break;\r
     default:\r
-      DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
+      DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
         __FUNCTION__, HostBridgeDevId));\r
       ASSERT (FALSE);\r
       return 0;\r
index ae976cbe9e96d425236c3964f7a19b89073ad4d3..09076c0adebf45fec2ea3a9a89367c94f7845b79 100644 (file)
@@ -51,7 +51,7 @@ AcpiTimerLibConstructor (
       Pmba = POWER_MGMT_REGISTER_Q35 (ICH9_PMBASE);\r
       break;\r
     default:\r
-      DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
+      DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
         __FUNCTION__, HostBridgeDevId));\r
       ASSERT (FALSE);\r
       return RETURN_UNSUPPORTED;\r
index 318e36ff11257f5cc0e6d05b806e606b7e427dbc..c5022f6636edd536b0db418a02bcda041118bb7b 100644 (file)
@@ -137,7 +137,7 @@ LoadLinuxInitializeKernelSetup (
   //\r
   ZeroMem (KernelSetup, 0x1f1);\r
   ZeroMem (((UINT8 *)KernelSetup) + SetupEnd, 4096 - SetupEnd);\r
-  DEBUG ((EFI_D_INFO, "Cleared kernel setup 0-0x1f1, 0x%Lx-0x1000\n",\r
+  DEBUG ((DEBUG_INFO, "Cleared kernel setup 0-0x1f1, 0x%Lx-0x1000\n",\r
     (UINT64)SetupEnd));\r
 \r
   return EFI_SUCCESS;\r
@@ -338,7 +338,7 @@ SetupLinuxMemmap (
 \r
     default:\r
       DEBUG ((\r
-        EFI_D_ERROR,\r
+        DEBUG_ERROR,\r
         "Invalid EFI memory descriptor type (0x%x)!\n",\r
         MemoryMap->Type\r
         ));\r
@@ -643,7 +643,7 @@ LoadLinux (
   Bp->hdr.code32_start = (UINT32)(UINTN) Kernel;\r
   if (Bp->hdr.version >= 0x20c && Bp->hdr.handover_offset &&\r
       (Bp->hdr.xloadflags & (sizeof (UINTN) == 4 ? BIT2 : BIT3))) {\r
-    DEBUG ((EFI_D_INFO, "Jumping to kernel EFI handover point at ofs %x\n", Bp->hdr.handover_offset));\r
+    DEBUG ((DEBUG_INFO, "Jumping to kernel EFI handover point at ofs %x\n", Bp->hdr.handover_offset));\r
 \r
     DisableInterrupts ();\r
     JumpToUefiKernel ((VOID*) gImageHandle, (VOID*) gST, KernelSetup, Kernel);\r
@@ -654,7 +654,7 @@ LoadLinux (
   //\r
   SetupLinuxBootParams (KernelSetup);\r
 \r
-  DEBUG ((EFI_D_INFO, "Jumping to kernel\n"));\r
+  DEBUG ((DEBUG_INFO, "Jumping to kernel\n"));\r
   DisableInterrupts ();\r
   SetLinuxDescriptorTables ();\r
   JumpToKernel (Kernel, (VOID*) KernelSetup);\r
index 627a15abd2745116719dbea609d61024a305fd08..2ba03522fbb6b7c23dc702b40658d5552b4b2792 100644 (file)
@@ -228,7 +228,7 @@ ReadNvVarsFile (
 \r
   Status = GetNvVarsFile (FsHandle, TRUE, &File);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_INFO, "FsAccess.c: Could not open NV Variables file on this file system\n"));\r
+    DEBUG ((DEBUG_INFO, "FsAccess.c: Could not open NV Variables file on this file system\n"));\r
     return Status;\r
   }\r
 \r
@@ -245,7 +245,7 @@ ReadNvVarsFile (
   }\r
 \r
   DEBUG ((\r
-    EFI_D_INFO,\r
+    DEBUG_INFO,\r
     "FsAccess.c: Read %Lu bytes from NV Variables file\n",\r
     (UINT64)FileSize\r
     ));\r
@@ -317,7 +317,7 @@ LoadNvVarsFromFs (
   BOOLEAN                        VarData;\r
   UINTN                          Size;\r
 \r
-  DEBUG ((EFI_D_INFO, "FsAccess.c: LoadNvVarsFromFs\n"));\r
+  DEBUG ((DEBUG_INFO, "FsAccess.c: LoadNvVarsFromFs\n"));\r
 \r
   //\r
   // We write a variable to indicate we've already loaded the\r
@@ -338,7 +338,7 @@ LoadNvVarsFromFs (
                   (VOID*) &VarData\r
                   );\r
   if (Status == EFI_SUCCESS) {\r
-    DEBUG ((EFI_D_INFO, "NV Variables were already loaded\n"));\r
+    DEBUG ((DEBUG_INFO, "NV Variables were already loaded\n"));\r
     return EFI_ALREADY_STARTED;\r
   }\r
 \r
@@ -347,7 +347,7 @@ LoadNvVarsFromFs (
   //\r
   Status = ReadNvVarsFile (FsHandle);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_INFO, "Error while restoring NV variable data\n"));\r
+    DEBUG ((DEBUG_INFO, "Error while restoring NV variable data\n"));\r
     return Status;\r
   }\r
 \r
@@ -359,7 +359,7 @@ LoadNvVarsFromFs (
   SetNvVarsVariable();\r
 \r
   DEBUG ((\r
-    EFI_D_INFO,\r
+    DEBUG_INFO,\r
     "FsAccess.c: Read NV Variables file (size=%Lu)\n",\r
     (UINT64)Size\r
     ));\r
@@ -469,7 +469,7 @@ SaveNvVarsToFs (
   //\r
   Status = GetNvVarsFile (FsHandle, FALSE, &File);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_INFO, "FsAccess.c: Unable to open file to saved NV Variables\n"));\r
+    DEBUG ((DEBUG_INFO, "FsAccess.c: Unable to open file to saved NV Variables\n"));\r
     return Status;\r
   }\r
 \r
@@ -498,7 +498,7 @@ SaveNvVarsToFs (
     //\r
     SetNvVarsVariable();\r
 \r
-    DEBUG ((EFI_D_INFO, "Saved NV Variables to NvVars file\n"));\r
+    DEBUG ((DEBUG_INFO, "Saved NV Variables to NvVars file\n"));\r
   }\r
 \r
   return Status;\r
index ec2385b75bbdb98ccd844ff430f8beb10c63e200..e850f7d183eeefab8ffeef317f74556055a64318 100644 (file)
@@ -152,13 +152,13 @@ InitRootBridge (
   DevicePath = AllocateCopyPool (sizeof mRootBridgeDevicePathTemplate,\r
                  &mRootBridgeDevicePathTemplate);\r
   if (DevicePath == NULL) {\r
-    DEBUG ((EFI_D_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES));\r
+    DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES));\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
   DevicePath->AcpiDevicePath.UID = RootBusNumber;\r
   RootBus->DevicePath = (EFI_DEVICE_PATH_PROTOCOL *)DevicePath;\r
 \r
-  DEBUG ((EFI_D_INFO,\r
+  DEBUG ((DEBUG_INFO,\r
     "%a: populated root bus %d, with room for %d subordinate bus(es)\n",\r
     __FUNCTION__, RootBusNumber, MaxSubBusNumber - RootBusNumber));\r
   return EFI_SUCCESS;\r
@@ -256,11 +256,11 @@ PciHostBridgeGetRootBridges (
     QemuFwCfgReadBytes (FwCfgSize, &ExtraRootBridges);\r
 \r
     if (ExtraRootBridges > PCI_MAX_BUS) {\r
-      DEBUG ((EFI_D_ERROR, "%a: invalid count of extra root buses (%Lu) "\r
+      DEBUG ((DEBUG_ERROR, "%a: invalid count of extra root buses (%Lu) "\r
         "reported by QEMU\n", __FUNCTION__, ExtraRootBridges));\r
       return NULL;\r
     }\r
-    DEBUG ((EFI_D_INFO, "%a: %Lu extra root buses reported by QEMU\n",\r
+    DEBUG ((DEBUG_INFO, "%a: %Lu extra root buses reported by QEMU\n",\r
       __FUNCTION__, ExtraRootBridges));\r
   }\r
 \r
@@ -269,7 +269,7 @@ PciHostBridgeGetRootBridges (
   //\r
   Bridges = AllocatePool ((1 + (UINTN)ExtraRootBridges) * sizeof *Bridges);\r
   if (Bridges == NULL) {\r
-    DEBUG ((EFI_D_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES));\r
+    DEBUG ((DEBUG_ERROR, "%a: %r\n", __FUNCTION__, EFI_OUT_OF_RESOURCES));\r
     return NULL;\r
   }\r
   Initialized = 0;\r
@@ -409,22 +409,22 @@ PciHostBridgeResourceConflict (
 {\r
   EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *Descriptor;\r
   UINTN                             RootBridgeIndex;\r
-  DEBUG ((EFI_D_ERROR, "PciHostBridge: Resource conflict happens!\n"));\r
+  DEBUG ((DEBUG_ERROR, "PciHostBridge: Resource conflict happens!\n"));\r
 \r
   RootBridgeIndex = 0;\r
   Descriptor = (EFI_ACPI_ADDRESS_SPACE_DESCRIPTOR *) Configuration;\r
   while (Descriptor->Desc == ACPI_ADDRESS_SPACE_DESCRIPTOR) {\r
-    DEBUG ((EFI_D_ERROR, "RootBridge[%d]:\n", RootBridgeIndex++));\r
+    DEBUG ((DEBUG_ERROR, "RootBridge[%d]:\n", RootBridgeIndex++));\r
     for (; Descriptor->Desc == ACPI_ADDRESS_SPACE_DESCRIPTOR; Descriptor++) {\r
       ASSERT (Descriptor->ResType <\r
               ARRAY_SIZE (mPciHostBridgeLibAcpiAddressSpaceTypeStr)\r
               );\r
-      DEBUG ((EFI_D_ERROR, " %s: Length/Alignment = 0x%lx / 0x%lx\n",\r
+      DEBUG ((DEBUG_ERROR, " %s: Length/Alignment = 0x%lx / 0x%lx\n",\r
               mPciHostBridgeLibAcpiAddressSpaceTypeStr[Descriptor->ResType],\r
               Descriptor->AddrLen, Descriptor->AddrRangeMax\r
               ));\r
       if (Descriptor->ResType == ACPI_ADDRESS_SPACE_TYPE_MEM) {\r
-        DEBUG ((EFI_D_ERROR, "     Granularity/SpecificFlag = %ld / %02x%s\n",\r
+        DEBUG ((DEBUG_ERROR, "     Granularity/SpecificFlag = %ld / %02x%s\n",\r
                 Descriptor->AddrSpaceGranularity, Descriptor->SpecificFlag,\r
                 ((Descriptor->SpecificFlag &\r
                   EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE\r
index 45d0ee9cc3a8df517f9f4c5f5051b95f4019de2a..3c55ec9bd9ace23e0b01bae1ba720790af2d14eb 100644 (file)
@@ -252,7 +252,7 @@ RemoveStaleFvFileOptions (
       DevicePathString = ConvertDevicePathToText(BootOptions[Index].FilePath,\r
                            FALSE, FALSE);\r
       DEBUG ((\r
-        EFI_ERROR (Status) ? EFI_D_WARN : EFI_D_VERBOSE,\r
+        EFI_ERROR (Status) ? DEBUG_WARN : DEBUG_VERBOSE,\r
         "%a: removing stale Boot#%04x %s: %r\n",\r
         __FUNCTION__,\r
         (UINT32)BootOptions[Index].OptionNumber,\r
@@ -356,7 +356,7 @@ PlatformBootManagerBeforeConsole (
   UINT16        FrontPageTimeout;\r
   RETURN_STATUS PcdStatus;\r
 \r
-  DEBUG ((EFI_D_INFO, "PlatformBootManagerBeforeConsole\n"));\r
+  DEBUG ((DEBUG_INFO, "PlatformBootManagerBeforeConsole\n"));\r
   InstallDevicePathCallback ();\r
 \r
   VisitAllInstancesOfProtocol (&gEfiPciRootBridgeIoProtocolGuid,\r
@@ -610,7 +610,7 @@ PrepareLpcBridgeDevicePath (
   DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);\r
   if (DevPathStr != NULL) {\r
     DEBUG((\r
-      EFI_D_INFO,\r
+      DEBUG_INFO,\r
       "BdsPlatform.c+%d: COM%d DevPath: %s\n",\r
       __LINE__,\r
       gPnp16550ComPortDeviceNode.UID + 1,\r
@@ -642,7 +642,7 @@ PrepareLpcBridgeDevicePath (
   DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);\r
   if (DevPathStr != NULL) {\r
     DEBUG((\r
-      EFI_D_INFO,\r
+      DEBUG_INFO,\r
       "BdsPlatform.c+%d: COM%d DevPath: %s\n",\r
       __LINE__,\r
       gPnp16550ComPortDeviceNode.UID + 1,\r
@@ -966,7 +966,7 @@ DetectAndPreparePlatformPciDevicePath (
     // Add IsaKeyboard to ConIn,\r
     // add IsaSerial to ConOut, ConIn, ErrOut\r
     //\r
-    DEBUG ((EFI_D_INFO, "Found LPC Bridge device\n"));\r
+    DEBUG ((DEBUG_INFO, "Found LPC Bridge device\n"));\r
     PrepareLpcBridgeDevicePath (Handle);\r
     return EFI_SUCCESS;\r
   }\r
@@ -977,7 +977,7 @@ DetectAndPreparePlatformPciDevicePath (
     //\r
     // Add them to ConOut, ConIn, ErrOut.\r
     //\r
-    DEBUG ((EFI_D_INFO, "Found PCI 16550 SERIAL device\n"));\r
+    DEBUG ((DEBUG_INFO, "Found PCI 16550 SERIAL device\n"));\r
     PreparePciSerialDevicePath (Handle);\r
     return EFI_SUCCESS;\r
   }\r
@@ -989,7 +989,7 @@ DetectAndPreparePlatformPciDevicePath (
     //\r
     // Add them to ConOut.\r
     //\r
-    DEBUG ((EFI_D_INFO, "Found PCI display device\n"));\r
+    DEBUG ((DEBUG_INFO, "Found PCI display device\n"));\r
     PreparePciDisplayDevicePath (Handle);\r
     return EFI_SUCCESS;\r
   }\r
@@ -1118,7 +1118,7 @@ SetPciIntLine (
     }\r
     if (RootBusNumber == 0 && RootSlot == 0) {\r
       DEBUG((\r
-        EFI_D_ERROR,\r
+        DEBUG_ERROR,\r
         "%a: PCI host bridge (00:00.0) should have no interrupts!\n",\r
         __FUNCTION__\r
         ));\r
@@ -1169,7 +1169,7 @@ SetPciIntLine (
       Status = PciIo->GetLocation (PciIo, &Segment, &Bus, &Device, &Function);\r
       ASSERT_EFI_ERROR (Status);\r
 \r
-      DEBUG ((EFI_D_VERBOSE, "%a: [%02x:%02x.%x] %s -> 0x%02x\n", __FUNCTION__,\r
+      DEBUG ((DEBUG_VERBOSE, "%a: [%02x:%02x.%x] %s -> 0x%02x\n", __FUNCTION__,\r
         (UINT32)Bus, (UINT32)Device, (UINT32)Function, DevPathString,\r
         IrqLine));\r
 \r
@@ -1237,7 +1237,7 @@ PciAcpiInitialization (
         //\r
         return;\r
       }\r
-      DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
+      DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
         __FUNCTION__, mHostBridgeDevId));\r
       ASSERT (FALSE);\r
       return;\r
@@ -1287,7 +1287,7 @@ ConnectRecursivelyIfPciMassStorage (
     DevPathStr = ConvertDevicePathToText (DevicePath, FALSE, FALSE);\r
     if (DevPathStr != NULL) {\r
       DEBUG((\r
-        EFI_D_INFO,\r
+        DEBUG_INFO,\r
         "Found %s device: %s\n",\r
         (IS_CLASS1 (PciHeader, PCI_CLASS_MASS_STORAGE) ?\r
          L"Mass Storage" :\r
@@ -1324,7 +1324,7 @@ EmuVariablesUpdatedCallback (
   IN  VOID      *Context\r
   )\r
 {\r
-  DEBUG ((EFI_D_INFO, "EmuVariablesUpdatedCallback\n"));\r
+  DEBUG ((DEBUG_INFO, "EmuVariablesUpdatedCallback\n"));\r
   UpdateNvVarsOnFileSystem ();\r
 }\r
 \r
@@ -1393,7 +1393,7 @@ PlatformBdsConnectSequence (
   UINTN         Index;\r
   RETURN_STATUS Status;\r
 \r
-  DEBUG ((EFI_D_INFO, "PlatformBdsConnectSequence\n"));\r
+  DEBUG ((DEBUG_INFO, "PlatformBdsConnectSequence\n"));\r
 \r
   Index = 0;\r
 \r
@@ -1473,10 +1473,10 @@ PlatformBootManagerAfterConsole (
 {\r
   EFI_BOOT_MODE                      BootMode;\r
 \r
-  DEBUG ((EFI_D_INFO, "PlatformBootManagerAfterConsole\n"));\r
+  DEBUG ((DEBUG_INFO, "PlatformBootManagerAfterConsole\n"));\r
 \r
   if (PcdGetBool (PcdOvmfFlashVariablesEnable)) {\r
-    DEBUG ((EFI_D_INFO, "PlatformBdsPolicyBehavior: not restoring NvVars "\r
+    DEBUG ((DEBUG_INFO, "PlatformBdsPolicyBehavior: not restoring NvVars "\r
       "from disk since flash variables appear to be supported.\n"));\r
   } else {\r
     //\r
@@ -1629,7 +1629,7 @@ InstallDevicePathCallback (
   VOID\r
   )\r
 {\r
-  DEBUG ((EFI_D_INFO, "Registered NotifyDevPath Event\n"));\r
+  DEBUG ((DEBUG_INFO, "Registered NotifyDevPath Event\n"));\r
   mEfiDevPathEvent = EfiCreateProtocolNotifyEvent (\r
                           &gEfiDevicePathProtocolGuid,\r
                           TPL_CALLBACK,\r
index 4431b13ca25be310e636eec79b1f0436a47b0255..25d5494047abc60aacf3d2a6d25c4a504b9727e4 100644 (file)
@@ -216,7 +216,7 @@ CreateExtraRootBusMap (
     ASSERT (Entry != NULL);\r
     Acpi = OrderedCollectionUserStruct (Entry);\r
     Map->BusNumbers[Idx] = Acpi->UID;\r
-    DEBUG ((EFI_D_VERBOSE,\r
+    DEBUG ((DEBUG_VERBOSE,\r
       "%a: extra bus position 0x%Lx maps to bus number (UID) 0x%x\n",\r
       __FUNCTION__, (UINT64)(Idx + 1), Acpi->UID));\r
     ++Idx;\r
index 983680f8b6dd006156bd2b25617d1c7e22ec7faf..0182c9235cac8c39a9ee2a211e25d548eb176ad1 100644 (file)
@@ -66,14 +66,14 @@ QemuFwCfgInitialize (
 \r
   QemuFwCfgSelectItem (QemuFwCfgItemSignature);\r
   Signature = QemuFwCfgRead32 ();\r
-  DEBUG ((EFI_D_INFO, "FW CFG Signature: 0x%x\n", Signature));\r
+  DEBUG ((DEBUG_INFO, "FW CFG Signature: 0x%x\n", Signature));\r
   QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion);\r
   Revision = QemuFwCfgRead32 ();\r
-  DEBUG ((EFI_D_INFO, "FW CFG Revision: 0x%x\n", Revision));\r
+  DEBUG ((DEBUG_INFO, "FW CFG Revision: 0x%x\n", Revision));\r
   if ((Signature != SIGNATURE_32 ('Q', 'E', 'M', 'U')) ||\r
       (Revision < 1)\r
      ) {\r
-    DEBUG ((EFI_D_INFO, "QemuFwCfg interface not supported.\n"));\r
+    DEBUG ((DEBUG_INFO, "QemuFwCfg interface not supported.\n"));\r
     mQemuFwCfgSupported = FALSE;\r
     return RETURN_SUCCESS;\r
   }\r
index 4d2c43cb8fd76e6cc0296e2d44d870925efc0197..4ef78b7a8b651009e4ccd1e24e315419de74e2d0 100644 (file)
@@ -35,7 +35,7 @@ QemuFwCfgSelectItem (
   IN FIRMWARE_CONFIG_ITEM   QemuFwCfgItem\r
   )\r
 {\r
-  DEBUG ((EFI_D_INFO, "Select Item: 0x%x\n", (UINT16)(UINTN) QemuFwCfgItem));\r
+  DEBUG ((DEBUG_INFO, "Select Item: 0x%x\n", (UINT16)(UINTN) QemuFwCfgItem));\r
   IoWrite16 (FW_CFG_IO_SELECTOR, (UINT16)(UINTN) QemuFwCfgItem);\r
 }\r
 \r
index d07b1714c20b891a3f35dbb0e68982d290bfa389..ecabd88fab66a2472d34a8e7c08d31c057fad9b3 100644 (file)
@@ -59,14 +59,14 @@ QemuFwCfgInitialize (
 \r
   QemuFwCfgSelectItem (QemuFwCfgItemSignature);\r
   Signature = QemuFwCfgRead32 ();\r
-  DEBUG ((EFI_D_INFO, "FW CFG Signature: 0x%x\n", Signature));\r
+  DEBUG ((DEBUG_INFO, "FW CFG Signature: 0x%x\n", Signature));\r
   QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion);\r
   Revision = QemuFwCfgRead32 ();\r
-  DEBUG ((EFI_D_INFO, "FW CFG Revision: 0x%x\n", Revision));\r
+  DEBUG ((DEBUG_INFO, "FW CFG Revision: 0x%x\n", Revision));\r
   if ((Signature != SIGNATURE_32 ('Q', 'E', 'M', 'U')) ||\r
       (Revision < 1)\r
      ) {\r
-    DEBUG ((EFI_D_INFO, "QemuFwCfg interface not supported.\n"));\r
+    DEBUG ((DEBUG_INFO, "QemuFwCfg interface not supported.\n"));\r
     mQemuFwCfgSupported = FALSE;\r
     return RETURN_SUCCESS;\r
   }\r
index d7a44e5897d545effc5f4057d28ab623bfcfb7b8..94e8e92180cfcd7967dd799c2d49e7a347023963 100644 (file)
@@ -38,18 +38,18 @@ QemuFwCfgIsAvailable (
 \r
   QemuFwCfgSelectItem (QemuFwCfgItemSignature);\r
   Signature = QemuFwCfgRead32 ();\r
-  DEBUG ((EFI_D_INFO, "FW CFG Signature: 0x%x\n", Signature));\r
+  DEBUG ((DEBUG_INFO, "FW CFG Signature: 0x%x\n", Signature));\r
   QemuFwCfgSelectItem (QemuFwCfgItemInterfaceVersion);\r
   Revision = QemuFwCfgRead32 ();\r
-  DEBUG ((EFI_D_INFO, "FW CFG Revision: 0x%x\n", Revision));\r
+  DEBUG ((DEBUG_INFO, "FW CFG Revision: 0x%x\n", Revision));\r
   if ((Signature != SIGNATURE_32 ('Q', 'E', 'M', 'U')) ||\r
       (Revision < 1)\r
      ) {\r
-    DEBUG ((EFI_D_INFO, "QemuFwCfg interface not supported.\n"));\r
+    DEBUG ((DEBUG_INFO, "QemuFwCfg interface not supported.\n"));\r
     return FALSE;\r
   }\r
 \r
-  DEBUG ((EFI_D_INFO, "QemuFwCfg interface is supported.\n"));\r
+  DEBUG ((DEBUG_INFO, "QemuFwCfg interface is supported.\n"));\r
   return TRUE;\r
 }\r
 \r
index a6cebcb54f6be00654b3b2608a41cdefa7a39a48..777b93f1a02912475fa6e67dd43f37eff2e9ba54 100644 (file)
@@ -211,7 +211,7 @@ IterateVariablesInBuffer (
   //\r
   if (TotalSizeUsed != MaxSize) {\r
     DEBUG ((\r
-      EFI_D_ERROR,\r
+      DEBUG_ERROR,\r
       "Deserialize variables error: TotalSizeUsed(%Lu) != MaxSize(%Lu)\n",\r
       (UINT64)TotalSizeUsed,\r
       (UINT64)MaxSize\r
index 24ec7cd19b92a39a8796442cc4fc64e589afbb2f..4d2c23cfb39f346cc9b8be46aab75c60b95b0718 100644 (file)
@@ -80,7 +80,7 @@ DetectSmbiosVersion (
     SmbiosVersion = (UINT16)(QemuAnchor.V3.MajorVersion << 8 |\r
                              QemuAnchor.V3.MinorVersion);\r
 \r
-    DEBUG ((EFI_D_INFO, "%a: SMBIOS 3.x DocRev from QEMU: 0x%02x\n",\r
+    DEBUG ((DEBUG_INFO, "%a: SMBIOS 3.x DocRev from QEMU: 0x%02x\n",\r
       __FUNCTION__, QemuAnchor.V3.DocRev));\r
     PcdStatus = PcdSet8S (PcdSmbiosDocRev, QemuAnchor.V3.DocRev);\r
     ASSERT_RETURN_ERROR (PcdStatus);\r
@@ -90,7 +90,7 @@ DetectSmbiosVersion (
     return RETURN_SUCCESS;\r
   }\r
 \r
-  DEBUG ((EFI_D_INFO, "%a: SMBIOS version from QEMU: 0x%04x\n", __FUNCTION__,\r
+  DEBUG ((DEBUG_INFO, "%a: SMBIOS version from QEMU: 0x%04x\n", __FUNCTION__,\r
     SmbiosVersion));\r
   PcdStatus = PcdSet16S (PcdSmbiosVersion, SmbiosVersion);\r
   ASSERT_RETURN_ERROR (PcdStatus);\r
index d5bed3546d7760ffca2719bf6da7b82ec55ec87b..2f20272c1445be542359e8654f088f1e90d25d9e 100644 (file)
@@ -93,7 +93,7 @@ VirtioMmioInit (
     // The ARM Base and Foundation Models do not report a valid VirtIo VendorId.\r
     // They return a value of 0x0 for the VendorId.\r
     //\r
-    DEBUG((EFI_D_WARN, "VirtioMmioInit: Warning: The VendorId (0x%X) does not "\r
+    DEBUG((DEBUG_WARN, "VirtioMmioInit: Warning: The VendorId (0x%X) does not "\r
                        "match the VirtIo VendorId (0x%X).\n",\r
                        VendorId, VIRTIO_VENDOR_ID));\r
   }\r
index d4fa802743de22eaae13ccd8f086c82105f602d1..265aa766d0e823486e666a01605b1d50b0baaa3c 100644 (file)
@@ -45,7 +45,7 @@ XenHypercallHvmGetParam (
   Error = XenHypercall2 (__HYPERVISOR_hvm_op,\r
                          HVMOP_get_param, (INTN) &Parameter);\r
   if (Error != 0) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
             "XenHypercall: Error %Ld trying to get HVM parameter %d\n",\r
             (INT64)Error, Index));\r
     return 0;\r
index 154e4fdeb71c8152ac22ae69daa6785108999420..ae4ea0309ac3857b695e5195a35bc46ea2cc6ec0 100644 (file)
@@ -88,7 +88,7 @@ XenIoMmioInstall (
   XenBusDevicePath = AllocateCopyPool (sizeof *XenBusDevicePath,\r
                        &mXenBusRootDevicePathTemplate);\r
   if (!XenBusDevicePath) {\r
-    DEBUG ((EFI_D_ERROR, "%a: Out of memory\n", __FUNCTION__));\r
+    DEBUG ((DEBUG_ERROR, "%a: Out of memory\n", __FUNCTION__));\r
     Status = EFI_OUT_OF_RESOURCES;\r
     goto FreeXenIo;\r
   }\r
@@ -103,7 +103,7 @@ XenIoMmioInstall (
     return EFI_SUCCESS;\r
   }\r
 \r
-  DEBUG ((EFI_D_ERROR, "%a: Failed to install the EFI_DEVICE_PATH and "\r
+  DEBUG ((DEBUG_ERROR, "%a: Failed to install the EFI_DEVICE_PATH and "\r
     "XENIO_PROTOCOL protocols on handle %p (Status == %r)\n",\r
     __FUNCTION__, OutHandle, Status));\r
 \r
index b64dba1cc64f48e95611e84fa0671651afbaa28b..fd05ee5c2c1bd236570c5d0f686c94e8a5c10106 100644 (file)
@@ -569,7 +569,7 @@ GetResourcePadding (
 \r
     DevicePathString = ConvertDevicePathToText (HpcDevicePath, FALSE, FALSE);\r
 \r
-    DEBUG ((EFI_D_VERBOSE, "%a: Address=%02x:%02x.%x DevicePath=%s\n",\r
+    DEBUG ((DEBUG_VERBOSE, "%a: Address=%02x:%02x.%x DevicePath=%s\n",\r
       __FUNCTION__, Address->Bus, Address->Device, Address->Function,\r
       (DevicePathString == NULL) ? L"<unavailable>" : DevicePathString));\r
 \r
index 23ad43901f66cfd9c53da70901683751be08d378..f2e51960ce8b7c1d00fe76764598e1f55fd5cea8 100644 (file)
@@ -228,7 +228,7 @@ ExtractConfig (
   MAIN_FORM_STATE MainFormState;\r
   EFI_STATUS      Status;\r
 \r
-  DEBUG ((EFI_D_VERBOSE, "%a: Request=\"%s\"\n", __FUNCTION__, Request));\r
+  DEBUG ((DEBUG_VERBOSE, "%a: Request=\"%s\"\n", __FUNCTION__, Request));\r
 \r
   Status = PlatformConfigToFormState (&MainFormState);\r
   if (EFI_ERROR (Status)) {\r
@@ -243,10 +243,10 @@ ExtractConfig (
                                 (VOID *) &MainFormState, sizeof MainFormState,\r
                                 Results, Progress);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "%a: BlockToConfig(): %r, Progress=\"%s\"\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: BlockToConfig(): %r, Progress=\"%s\"\n",\r
       __FUNCTION__, Status, (Status == EFI_DEVICE_ERROR) ? NULL : *Progress));\r
   } else {\r
-    DEBUG ((EFI_D_VERBOSE, "%a: Results=\"%s\"\n", __FUNCTION__, *Results));\r
+    DEBUG ((DEBUG_VERBOSE, "%a: Results=\"%s\"\n", __FUNCTION__, *Results));\r
   }\r
   return Status;\r
 }\r
@@ -321,7 +321,7 @@ RouteConfig (
   UINTN           BlockSize;\r
   EFI_STATUS      Status;\r
 \r
-  DEBUG ((EFI_D_VERBOSE, "%a: Configuration=\"%s\"\n", __FUNCTION__,\r
+  DEBUG ((DEBUG_VERBOSE, "%a: Configuration=\"%s\"\n", __FUNCTION__,\r
     Configuration));\r
 \r
   //\r
@@ -343,7 +343,7 @@ RouteConfig (
   Status = gHiiConfigRouting->ConfigToBlock (gHiiConfigRouting, Configuration,\r
                                 (VOID *) &MainFormState, &BlockSize, Progress);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "%a: ConfigToBlock(): %r, Progress=\"%s\"\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: ConfigToBlock(): %r, Progress=\"%s\"\n",\r
       __FUNCTION__, Status,\r
       (Status == EFI_BUFFER_TOO_SMALL) ? NULL : *Progress));\r
     return Status;\r
@@ -372,7 +372,7 @@ Callback (
   OUT    EFI_BROWSER_ACTION_REQUEST             *ActionRequest\r
   )\r
 {\r
-  DEBUG ((EFI_D_VERBOSE, "%a: Action=0x%Lx QuestionId=%d Type=%d\n",\r
+  DEBUG ((DEBUG_VERBOSE, "%a: Action=0x%Lx QuestionId=%d Type=%d\n",\r
     __FUNCTION__, (UINT64) Action, QuestionId, Type));\r
 \r
   if (Action != EFI_BROWSER_ACTION_CHANGED) {\r
@@ -661,7 +661,7 @@ ExecutePlatformConfig (
 \r
   Status = PlatformConfigLoad (&PlatformConfig, &OptionalElements);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG (((Status == EFI_NOT_FOUND) ? EFI_D_VERBOSE : EFI_D_ERROR,\r
+    DEBUG (((Status == EFI_NOT_FOUND) ? DEBUG_VERBOSE : DEBUG_ERROR,\r
       "%a: failed to load platform config: %r\n", __FUNCTION__, Status));\r
     return Status;\r
   }\r
index 1a9d75022f48857389520fee30e29faa9ef2f5ba..dccf9505dd7b6a52b0b17a81a44e081c4dcef24a 100644 (file)
@@ -63,7 +63,7 @@ OnMpServicesAvailable (
   EFI_PEI_MP_SERVICES_PPI *MpServices;\r
   EFI_STATUS              Status;\r
 \r
-  DEBUG ((EFI_D_VERBOSE, "%a: %a\n", gEfiCallerBaseName, __FUNCTION__));\r
+  DEBUG ((DEBUG_VERBOSE, "%a: %a\n", gEfiCallerBaseName, __FUNCTION__));\r
 \r
   //\r
   // Write the MSR on all the APs in parallel.\r
@@ -78,7 +78,7 @@ OnMpServicesAvailable (
                          NULL                 // ProcedureArgument\r
                          );\r
   if (EFI_ERROR (Status) && Status != EFI_NOT_STARTED) {\r
-    DEBUG ((EFI_D_ERROR, "%a: StartupAllAps(): %r\n", __FUNCTION__, Status));\r
+    DEBUG ((DEBUG_ERROR, "%a: StartupAllAps(): %r\n", __FUNCTION__, Status));\r
     return Status;\r
   }\r
 \r
@@ -122,7 +122,7 @@ InstallFeatureControlCallback (
 \r
   Status = PeiServicesNotifyPpi (&mMpServicesNotify);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "%a: failed to set up MP Services callback: %r\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: failed to set up MP Services callback: %r\n",\r
       __FUNCTION__, Status));\r
   }\r
 }\r
index 13b1dd38e6d6f5f64554f8b46e6d2b5895d4d00f..ee4ecab615f9a4506fc4a50ad992c726027edfb6 100644 (file)
@@ -28,7 +28,7 @@ PeiFvInitialization (
 {\r
   BOOLEAN SecureS3Needed;\r
 \r
-  DEBUG ((EFI_D_INFO, "Platform PEI Firmware Volume Initialization\n"));\r
+  DEBUG ((DEBUG_INFO, "Platform PEI Firmware Volume Initialization\n"));\r
 \r
   //\r
   // Create a memory allocation HOB for the PEI FV.\r
index f32df937f9bad96ed92413a9ecbda7c3141608fb..3b46ea431ade589d5827e229b7ed471c3982d3da 100644 (file)
@@ -408,7 +408,7 @@ GetFirstNonAddress (
 \r
   if (Pci64Size == 0) {\r
     if (mBootMode != BOOT_ON_S3_RESUME) {\r
-      DEBUG ((EFI_D_INFO, "%a: disabling 64-bit PCI host aperture\n",\r
+      DEBUG ((DEBUG_INFO, "%a: disabling 64-bit PCI host aperture\n",\r
         __FUNCTION__));\r
       PcdStatus = PcdSet64S (PcdPciMmio64Size, 0);\r
       ASSERT_RETURN_ERROR (PcdStatus);\r
@@ -466,7 +466,7 @@ GetFirstNonAddress (
     PcdStatus = PcdSet64S (PcdPciMmio64Size, Pci64Size);\r
     ASSERT_RETURN_ERROR (PcdStatus);\r
 \r
-    DEBUG ((EFI_D_INFO, "%a: Pci64Base=0x%Lx Pci64Size=0x%Lx\n",\r
+    DEBUG ((DEBUG_INFO, "%a: Pci64Base=0x%Lx Pci64Size=0x%Lx\n",\r
       __FUNCTION__, Pci64Base, Pci64Size));\r
   }\r
 \r
@@ -626,7 +626,7 @@ PublishPeiMemory (
     MemorySize = mS3AcpiReservedMemorySize;\r
   } else {\r
     PeiMemoryCap = GetPeiMemoryCap ();\r
-    DEBUG ((EFI_D_INFO, "%a: mPhysMemAddressWidth=%d PeiMemoryCap=%u KB\n",\r
+    DEBUG ((DEBUG_INFO, "%a: mPhysMemAddressWidth=%d PeiMemoryCap=%u KB\n",\r
       __FUNCTION__, mPhysMemAddressWidth, PeiMemoryCap >> 10));\r
 \r
     //\r
@@ -705,7 +705,7 @@ QemuInitializeRam (
   MTRR_SETTINGS               MtrrSettings;\r
   EFI_STATUS                  Status;\r
 \r
-  DEBUG ((EFI_D_INFO, "%a called\n", __FUNCTION__));\r
+  DEBUG ((DEBUG_INFO, "%a called\n", __FUNCTION__));\r
 \r
   //\r
   // Determine total memory size available\r
index 3b850c2c2626f7fd438914b6084556770509ded4..96468701e3b8c5f474526a4c51f6cc2e8d7599b4 100644 (file)
@@ -362,7 +362,7 @@ MiscInitialization (
       AcpiEnBit  = ICH9_ACPI_CNTL_ACPI_EN;\r
       break;\r
     default:\r
-      DEBUG ((EFI_D_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
+      DEBUG ((DEBUG_ERROR, "%a: Unknown Host Bridge Device ID: 0x%04x\n",\r
         __FUNCTION__, mHostBridgeDevId));\r
       ASSERT (FALSE);\r
       return;\r
@@ -448,7 +448,7 @@ ReserveEmuVariableNvStore (
       AllocateRuntimePages (\r
         EFI_SIZE_TO_PAGES (2 * PcdGet32 (PcdFlashNvStorageFtwSpareSize))\r
         );\r
-  DEBUG ((EFI_D_INFO,\r
+  DEBUG ((DEBUG_INFO,\r
           "Reserved variable store memory: 0x%lX; size: %dkb\n",\r
           VariableStore,\r
           (2 * PcdGet32 (PcdFlashNvStorageFtwSpareSize)) / 1024\r
@@ -465,15 +465,15 @@ DebugDumpCmos (
 {\r
   UINT32 Loop;\r
 \r
-  DEBUG ((EFI_D_INFO, "CMOS:\n"));\r
+  DEBUG ((DEBUG_INFO, "CMOS:\n"));\r
 \r
   for (Loop = 0; Loop < 0x80; Loop++) {\r
     if ((Loop % 0x10) == 0) {\r
-      DEBUG ((EFI_D_INFO, "%02x:", Loop));\r
+      DEBUG ((DEBUG_INFO, "%02x:", Loop));\r
     }\r
-    DEBUG ((EFI_D_INFO, " %02x", CmosRead8 (Loop)));\r
+    DEBUG ((DEBUG_INFO, " %02x", CmosRead8 (Loop)));\r
     if ((Loop % 0x10) == 0xf) {\r
-      DEBUG ((EFI_D_INFO, "\n"));\r
+      DEBUG ((DEBUG_INFO, "\n"));\r
     }\r
   }\r
 }\r
@@ -486,12 +486,12 @@ S3Verification (
 {\r
 #if defined (MDE_CPU_X64)\r
   if (FeaturePcdGet (PcdSmmSmramRequire) && mS3Supported) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
       "%a: S3Resume2Pei doesn't support X64 PEI + SMM yet.\n", __FUNCTION__));\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
       "%a: Please disable S3 on the QEMU command line (see the README),\n",\r
       __FUNCTION__));\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
       "%a: or build OVMF with \"OvmfPkgIa32X64.dsc\".\n", __FUNCTION__));\r
     ASSERT (FALSE);\r
     CpuDeadLoop ();\r
@@ -706,7 +706,7 @@ InitializePlatform (
   XenDetect ();\r
 \r
   if (QemuFwCfgS3Enabled ()) {\r
-    DEBUG ((EFI_D_INFO, "S3 support was detected on QEMU\n"));\r
+    DEBUG ((DEBUG_INFO, "S3 support was detected on QEMU\n"));\r
     mS3Supported = TRUE;\r
     Status = PcdSetBoolS (PcdAcpiS3Enable, TRUE);\r
     ASSERT_EFI_ERROR (Status);\r
@@ -736,7 +736,7 @@ InitializePlatform (
   InitializeRamRegions ();\r
 \r
   if (mXen) {\r
-    DEBUG ((EFI_D_INFO, "Xen was detected\n"));\r
+    DEBUG ((DEBUG_INFO, "Xen was detected\n"));\r
     InitializeXen ();\r
   }\r
 \r
index 0904c654f149caa6b242faef980db643eebbfd47..104922c67e7ea0108c5f4c955b879def644b3789 100644 (file)
@@ -93,7 +93,7 @@ XenConnect (
   }\r
 \r
   AsmCpuid (XenLeaf + 1, &XenVersion, NULL, NULL, NULL);\r
-  DEBUG ((EFI_D_ERROR, "Detected Xen version %d.%d\n",\r
+  DEBUG ((DEBUG_ERROR, "Detected Xen version %d.%d\n",\r
           XenVersion >> 16, XenVersion & 0xFFFF));\r
   mXenInfo.VersionMajor = (UINT16)(XenVersion >> 16);\r
   mXenInfo.VersionMinor = (UINT16)(XenVersion & 0xFFFF);\r
@@ -157,7 +157,7 @@ XenPublishRamRegions (
     return;\r
   }\r
 \r
-  DEBUG ((EFI_D_INFO, "Using memory map provided by Xen\n"));\r
+  DEBUG ((DEBUG_INFO, "Using memory map provided by Xen\n"));\r
 \r
   //\r
   // Parse RAM in E820 map\r
index 76a7853de04df71d80a1c8516483e260345e614f..bc3f1bb5fdeffe4fff53fbaba33564af1da77e4d 100644 (file)
@@ -815,7 +815,7 @@ ValidateFvHeader (
     Expected =\r
       (UINT16) (((UINTN) FwVolHeader->Checksum + 0x10000 - Checksum) & 0xffff);\r
 \r
-    DEBUG ((EFI_D_INFO, "FV@%p Checksum is 0x%x, expected 0x%x\n",\r
+    DEBUG ((DEBUG_INFO, "FV@%p Checksum is 0x%x, expected 0x%x\n",\r
             FwVolHeader, FwVolHeader->Checksum, Expected));\r
     return EFI_NOT_FOUND;\r
   }\r
@@ -859,7 +859,7 @@ InitializeVariableFvHeader (
     UINTN   Offset;\r
     UINTN   Start;\r
 \r
-    DEBUG ((EFI_D_INFO,\r
+    DEBUG ((DEBUG_INFO,\r
       "Variable FV header is not valid. It will be reinitialized.\n"));\r
 \r
     //\r
@@ -929,7 +929,7 @@ FvbInitialize (
     //\r
     // Return an error so image will be unloaded\r
     //\r
-    DEBUG ((EFI_D_INFO,\r
+    DEBUG ((DEBUG_INFO,\r
       "QEMU flash was not detected. Writable FVB is not being installed.\n"));\r
     return EFI_WRITE_PROTECTED;\r
   }\r
@@ -946,7 +946,7 @@ FvbInitialize (
 \r
   Status = InitializeVariableFvHeader ();\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_INFO,\r
+    DEBUG ((DEBUG_INFO,\r
       "QEMU Flash: Unable to initialize variable FV header\n"));\r
     return EFI_WRITE_PROTECTED;\r
   }\r
@@ -959,7 +959,7 @@ FvbInitialize (
     //\r
     Status = GetFvbInfo (Length, &FwVolHeader);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_INFO, "EFI_ERROR (GetFvbInfo (Length, &FwVolHeader))\n"));\r
+      DEBUG ((DEBUG_INFO, "EFI_ERROR (GetFvbInfo (Length, &FwVolHeader))\n"));\r
       return EFI_WRITE_PROTECTED;\r
     }\r
   }\r
index e60978fa127badc228ada22a22f4d8fc05ab53a0..1f285e008372b069dd26bf991342ff247d26abb0 100644 (file)
@@ -44,7 +44,7 @@ InstallProtocolInterfaces (
     // LocateDevicePath fails so install a new interface and device path\r
     //\r
     FwbHandle = NULL;\r
-    DEBUG ((EFI_D_INFO, "Installing QEMU flash FVB\n"));\r
+    DEBUG ((DEBUG_INFO, "Installing QEMU flash FVB\n"));\r
     Status = gBS->InstallMultipleProtocolInterfaces (\r
                     &FwbHandle,\r
                     &gEfiFirmwareVolumeBlockProtocolGuid,\r
@@ -65,7 +65,7 @@ InstallProtocolInterfaces (
                     );\r
     ASSERT_EFI_ERROR (Status);\r
 \r
-    DEBUG ((EFI_D_INFO, "Reinstalling FVB for QEMU flash region\n"));\r
+    DEBUG ((DEBUG_INFO, "Reinstalling FVB for QEMU flash region\n"));\r
     Status = gBS->ReinstallProtocolInterface (\r
                     FwbHandle,\r
                     &gEfiFirmwareVolumeBlockProtocolGuid,\r
index 2717930f75e30fe0468837be57ee30352a1f30c0..544f88e661a85d7d94a4e515bafa419c4a50467a 100644 (file)
@@ -34,7 +34,7 @@ InstallProtocolInterfaces (
   // Firmware Volume Block protocol structure.\r
   //\r
   FvbHandle = NULL;\r
-  DEBUG ((EFI_D_INFO, "Installing QEMU flash SMM FVB\n"));\r
+  DEBUG ((DEBUG_INFO, "Installing QEMU flash SMM FVB\n"));\r
   Status = gSmst->SmmInstallProtocolInterface (\r
                     &FvbHandle,\r
                     &gEfiSmmFirmwareVolumeBlockProtocolGuid,\r
index c81c58972bf22b9aa6192b47d7fa4ebe33c147da..1b0d6c053f1aa526460519fd100f8c26a2acda1a 100644 (file)
@@ -74,35 +74,35 @@ QemuFlashDetected (
   }\r
 \r
   if (Offset >= mFdBlockSize) {\r
-    DEBUG ((EFI_D_INFO, "QEMU Flash: Failed to find probe location\n"));\r
+    DEBUG ((DEBUG_INFO, "QEMU Flash: Failed to find probe location\n"));\r
     return FALSE;\r
   }\r
 \r
-  DEBUG ((EFI_D_INFO, "QEMU Flash: Attempting flash detection at %p\n", Ptr));\r
+  DEBUG ((DEBUG_INFO, "QEMU Flash: Attempting flash detection at %p\n", Ptr));\r
 \r
   OriginalUint8 = *Ptr;\r
   *Ptr = CLEAR_STATUS_CMD;\r
   ProbeUint8 = *Ptr;\r
   if (OriginalUint8 != CLEAR_STATUS_CMD &&\r
       ProbeUint8 == CLEAR_STATUS_CMD) {\r
-    DEBUG ((EFI_D_INFO, "QemuFlashDetected => FD behaves as RAM\n"));\r
+    DEBUG ((DEBUG_INFO, "QemuFlashDetected => FD behaves as RAM\n"));\r
     *Ptr = OriginalUint8;\r
   } else {\r
     *Ptr = READ_STATUS_CMD;\r
     ProbeUint8 = *Ptr;\r
     if (ProbeUint8 == OriginalUint8) {\r
-      DEBUG ((EFI_D_INFO, "QemuFlashDetected => FD behaves as ROM\n"));\r
+      DEBUG ((DEBUG_INFO, "QemuFlashDetected => FD behaves as ROM\n"));\r
     } else if (ProbeUint8 == READ_STATUS_CMD) {\r
-      DEBUG ((EFI_D_INFO, "QemuFlashDetected => FD behaves as RAM\n"));\r
+      DEBUG ((DEBUG_INFO, "QemuFlashDetected => FD behaves as RAM\n"));\r
       *Ptr = OriginalUint8;\r
     } else if (ProbeUint8 == CLEARED_ARRAY_STATUS) {\r
-      DEBUG ((EFI_D_INFO, "QemuFlashDetected => FD behaves as FLASH\n"));\r
+      DEBUG ((DEBUG_INFO, "QemuFlashDetected => FD behaves as FLASH\n"));\r
       FlashDetected = TRUE;\r
       *Ptr = READ_ARRAY_CMD;\r
     }\r
   }\r
 \r
-  DEBUG ((EFI_D_INFO, "QemuFlashDetected => %a\n",\r
+  DEBUG ((DEBUG_INFO, "QemuFlashDetected => %a\n",\r
                       FlashDetected ? "Yes" : "No"));\r
   return FlashDetected;\r
 }\r
index 37bbbbe843c906422d6e4b1c0699768eb18eb1fc..85edfcb1d6df7079b6c75af9844c870b16585ef6 100644 (file)
@@ -153,7 +153,7 @@ QemuVideoControllerDriverSupported (
   }\r
   Card = QemuVideoDetect(Pci.Hdr.ClassCode[1], Pci.Hdr.VendorId, Pci.Hdr.DeviceId);\r
   if (Card != NULL) {\r
-    DEBUG ((EFI_D_INFO, "QemuVideo: %s detected\n", Card->Name));\r
+    DEBUG ((DEBUG_INFO, "QemuVideo: %s detected\n", Card->Name));\r
     Status = EFI_SUCCESS;\r
   }\r
 \r
@@ -324,10 +324,10 @@ QemuVideoControllerDriverStart (
                         );\r
     if (EFI_ERROR (Status) ||\r
         MmioDesc->ResType != ACPI_ADDRESS_SPACE_TYPE_MEM) {\r
-      DEBUG ((EFI_D_INFO, "QemuVideo: No mmio bar, fallback to port io\n"));\r
+      DEBUG ((DEBUG_INFO, "QemuVideo: No mmio bar, fallback to port io\n"));\r
       Private->Variant = QEMU_VIDEO_BOCHS;\r
     } else {\r
-      DEBUG ((EFI_D_INFO, "QemuVideo: Using mmio bar @ 0x%lx\n",\r
+      DEBUG ((DEBUG_INFO, "QemuVideo: Using mmio bar @ 0x%lx\n",\r
               MmioDesc->AddrRangeMin));\r
     }\r
 \r
@@ -352,7 +352,7 @@ QemuVideoControllerDriverStart (
     UINT16 BochsId;\r
     BochsId = BochsRead(Private, VBE_DISPI_INDEX_ID);\r
     if ((BochsId & 0xFFF0) != VBE_DISPI_ID0) {\r
-      DEBUG ((EFI_D_INFO, "QemuVideo: BochsID mismatch (got 0x%x)\n", BochsId));\r
+      DEBUG ((DEBUG_INFO, "QemuVideo: BochsID mismatch (got 0x%x)\n", BochsId));\r
       Status = EFI_DEVICE_ERROR;\r
       goto RestoreAttributes;\r
     }\r
@@ -959,7 +959,7 @@ InitializeBochsGraphicsMode (
   QEMU_VIDEO_BOCHS_MODES  *ModeData\r
   )\r
 {\r
-  DEBUG ((EFI_D_INFO, "InitializeBochsGraphicsMode: %dx%d @ %d\n",\r
+  DEBUG ((DEBUG_INFO, "InitializeBochsGraphicsMode: %dx%d @ %d\n",\r
           ModeData->Width, ModeData->Height, ModeData->ColorDepth));\r
 \r
   /* unblank */\r
index e49ec32cf16dfcee6027a3cdf328ffb7305d6de7..a44917eb6b623f79cddca919d7ae49776b9f9ea6 100644 (file)
@@ -30,7 +30,7 @@ QemuVideoCompleteModeInfo (
     Info->PixelInformation.BlueMask = PIXEL24_BLUE_MASK;\r
     Info->PixelInformation.ReservedMask = 0;\r
   } else if (ModeData->ColorDepth == 32) {\r
-    DEBUG ((EFI_D_INFO, "PixelBlueGreenRedReserved8BitPerColor\n"));\r
+    DEBUG ((DEBUG_INFO, "PixelBlueGreenRedReserved8BitPerColor\n"));\r
     Info->PixelFormat = PixelBlueGreenRedReserved8BitPerColor;\r
   }\r
   Info->PixelsPerScanLine = Info->HorizontalResolution;\r
@@ -65,7 +65,7 @@ QemuVideoCompleteModeData (
   Mode->FrameBufferSize = EFI_PAGES_TO_SIZE (\r
                             EFI_SIZE_TO_PAGES (Mode->FrameBufferSize)\r
                             );\r
-  DEBUG ((EFI_D_INFO, "FrameBufferBase: 0x%Lx, FrameBufferSize: 0x%Lx\n",\r
+  DEBUG ((DEBUG_INFO, "FrameBufferBase: 0x%Lx, FrameBufferSize: 0x%Lx\n",\r
     Mode->FrameBufferBase, (UINT64)Mode->FrameBufferSize));\r
 \r
   FreePool (FrameBufDesc);\r
index 6ee42fb8d9d71d0b9eeaf8e5ce65e4a7502b0bdb..b5a5660ed2eed5481463b0ccf0695ab364b9f498 100644 (file)
@@ -180,7 +180,7 @@ QemuVideoCirrusModeSetup (
     ModeData->HorizontalResolution          = VideoMode->Width;\r
     ModeData->VerticalResolution            = VideoMode->Height;\r
     ModeData->ColorDepth                    = VideoMode->ColorDepth;\r
-    DEBUG ((EFI_D_INFO,\r
+    DEBUG ((DEBUG_INFO,\r
       "Adding Mode %d as Cirrus Internal Mode %d: %dx%d, %d-bit\n",\r
       (INT32) (ModeData - Private->ModeData),\r
       ModeData->InternalModeIndex,\r
@@ -289,7 +289,7 @@ QemuVideoBochsModeSetup (
         EFI_ERROR (\r
           Private->PciIo->Mem.Read (Private->PciIo, EfiPciIoWidthUint32,\r
                                 PCI_BAR_IDX2, 40, 1, &AvailableFbSize))) {\r
-      DEBUG ((EFI_D_ERROR, "%a: can't read size of drawable buffer from QXL "\r
+      DEBUG ((DEBUG_ERROR, "%a: can't read size of drawable buffer from QXL "\r
         "ROM\n", __FUNCTION__));\r
       return EFI_NOT_FOUND;\r
     }\r
@@ -297,7 +297,7 @@ QemuVideoBochsModeSetup (
     AvailableFbSize  = BochsRead (Private, VBE_DISPI_INDEX_VIDEO_MEMORY_64K);\r
     AvailableFbSize *= SIZE_64KB;\r
   }\r
-  DEBUG ((EFI_D_INFO, "%a: AvailableFbSize=0x%x\n", __FUNCTION__,\r
+  DEBUG ((DEBUG_INFO, "%a: AvailableFbSize=0x%x\n", __FUNCTION__,\r
     AvailableFbSize));\r
 \r
   //\r
@@ -322,7 +322,7 @@ QemuVideoBochsModeSetup (
       ModeData->HorizontalResolution = VideoMode->Width;\r
       ModeData->VerticalResolution   = VideoMode->Height;\r
       ModeData->ColorDepth           = VideoMode->ColorDepth;\r
-      DEBUG ((EFI_D_INFO,\r
+      DEBUG ((DEBUG_INFO,\r
         "Adding Mode %d as Bochs Internal Mode %d: %dx%d, %d-bit\n",\r
         (INT32) (ModeData - Private->ModeData),\r
         ModeData->InternalModeIndex,\r
index c23dc984d4538f0b955ecddff465d0b7829ce9eb..048ffa7058caceecf49c5ecb41b40955f6ef790a 100644 (file)
@@ -114,7 +114,7 @@ InstallVbeShim (
     //\r
     Handler = (Int0x10->Segment << 4) + Int0x10->Offset;\r
     if (Handler >= SegmentC && Handler < SegmentF) {\r
-      DEBUG ((EFI_D_INFO, "%a: Video BIOS handler found at %04x:%04x\n",\r
+      DEBUG ((DEBUG_INFO, "%a: Video BIOS handler found at %04x:%04x\n",\r
         __FUNCTION__, Int0x10->Segment, Int0x10->Offset));\r
       return;\r
     }\r
@@ -312,5 +312,5 @@ InstallVbeShim (
   Int0x10->Segment = (UINT16) ((UINT32)SegmentC >> 4);\r
   Int0x10->Offset  = (UINT16) ((UINTN) (VbeModeInfo + 1) - SegmentC);\r
 \r
-  DEBUG ((EFI_D_INFO, "%a: VBE shim installed\n", __FUNCTION__));\r
+  DEBUG ((DEBUG_INFO, "%a: VBE shim installed\n", __FUNCTION__));\r
 }\r
index 313bfab1bea58d577d81b9b9e0b5a5230e3c8ce5..a5b5f04d270881eb494c47c61b0dc83eeb3540bd 100644 (file)
@@ -118,7 +118,7 @@ CalculateBestPioMode (
   if ((IdentifyData->AtaData.field_validity & 0x02) == 0x02) {\r
 \r
     AdvancedPioMode = IdentifyData->AtaData.advanced_pio_modes;\r
-    DEBUG ((EFI_D_INFO, "CalculateBestPioMode: AdvancedPioMode = %x\n", AdvancedPioMode));\r
+    DEBUG ((DEBUG_INFO, "CalculateBestPioMode: AdvancedPioMode = %x\n", AdvancedPioMode));\r
 \r
     for (Index = 0; Index < 8; Index++) {\r
       if ((AdvancedPioMode & 0x01) != 0) {\r
@@ -232,7 +232,7 @@ CalculateBestUdmaMode (
   }\r
 \r
   DeviceUDmaMode = IdentifyData->AtaData.ultra_dma_mode;\r
-  DEBUG ((EFI_D_INFO, "CalculateBestUdmaMode: DeviceUDmaMode = %x\n", DeviceUDmaMode));\r
+  DEBUG ((DEBUG_INFO, "CalculateBestUdmaMode: DeviceUDmaMode = %x\n", DeviceUDmaMode));\r
   DeviceUDmaMode &= 0x3f;\r
   TempMode = 0;                 // initialize it to UDMA-0\r
 \r
@@ -391,7 +391,7 @@ SataControllerStart (
   UINT32                            Data32;\r
   UINTN                             ChannelDeviceCount;\r
 \r
-  DEBUG ((EFI_D_INFO, "SataControllerStart START\n"));\r
+  DEBUG ((DEBUG_INFO, "SataControllerStart START\n"));\r
 \r
   BailLogMask = DEBUG_ERROR;\r
   SataPrivateData = NULL;\r
@@ -518,7 +518,7 @@ SataControllerStart (
     goto FreeIdentifyValid;\r
   }\r
 \r
-  DEBUG ((EFI_D_INFO, "SataControllerStart END status = %r\n", Status));\r
+  DEBUG ((DEBUG_INFO, "SataControllerStart END status = %r\n", Status));\r
   return Status;\r
 \r
 FreeIdentifyValid:\r
@@ -1034,7 +1034,7 @@ IdeInitCalculateMode (
   } else {\r
     (*SupportedModes)->PioMode.Valid = FALSE;\r
   }\r
-  DEBUG ((EFI_D_INFO, "IdeInitCalculateMode: PioMode = %x\n", (*SupportedModes)->PioMode.Mode));\r
+  DEBUG ((DEBUG_INFO, "IdeInitCalculateMode: PioMode = %x\n", (*SupportedModes)->PioMode.Mode));\r
 \r
   Status = CalculateBestUdmaMode (\r
             IdentifyData,\r
@@ -1049,7 +1049,7 @@ IdeInitCalculateMode (
   } else {\r
     (*SupportedModes)->UdmaMode.Valid = FALSE;\r
   }\r
-  DEBUG ((EFI_D_INFO, "IdeInitCalculateMode: UdmaMode = %x\n", (*SupportedModes)->UdmaMode.Mode));\r
+  DEBUG ((DEBUG_INFO, "IdeInitCalculateMode: UdmaMode = %x\n", (*SupportedModes)->UdmaMode.Mode));\r
 \r
   //\r
   // The modes other than PIO and UDMA are not supported\r
index bae9764577f0dbf9d5cbd5e468e1d7e5fea96618..6dea6e771a29db4d388b55bbee0f473cc19960e6 100644 (file)
@@ -256,7 +256,7 @@ FindFfsFileAndSection (
   EFI_PHYSICAL_ADDRESS        EndOfFile;\r
 \r
   if (Fv->Signature != EFI_FVH_SIGNATURE) {\r
-    DEBUG ((EFI_D_ERROR, "FV at %p does not have FV header signature\n", Fv));\r
+    DEBUG ((DEBUG_ERROR, "FV at %p does not have FV header signature\n", Fv));\r
     return EFI_VOLUME_CORRUPTED;\r
   }\r
 \r
@@ -342,7 +342,7 @@ DecompressMemFvs (
              (EFI_COMMON_SECTION_HEADER**) &Section\r
              );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Unable to find GUID defined section\n"));\r
+    DEBUG ((DEBUG_ERROR, "Unable to find GUID defined section\n"));\r
     return Status;\r
   }\r
 \r
@@ -353,14 +353,14 @@ DecompressMemFvs (
              &SectionAttribute\r
              );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Unable to GetInfo for GUIDed section\n"));\r
+    DEBUG ((DEBUG_ERROR, "Unable to GetInfo for GUIDed section\n"));\r
     return Status;\r
   }\r
 \r
   OutputBuffer = (VOID*) ((UINT8*)(UINTN) PcdGet32 (PcdOvmfDxeMemFvBase) + SIZE_1MB);\r
   ScratchBuffer = ALIGN_POINTER ((UINT8*) OutputBuffer + OutputBufferSize, SIZE_1MB);\r
 \r
-  DEBUG ((EFI_D_VERBOSE, "%a: OutputBuffer@%p+0x%x ScratchBuffer@%p+0x%x "\r
+  DEBUG ((DEBUG_VERBOSE, "%a: OutputBuffer@%p+0x%x ScratchBuffer@%p+0x%x "\r
     "PcdOvmfDecompressionScratchEnd=0x%x\n", __FUNCTION__, OutputBuffer,\r
     OutputBufferSize, ScratchBuffer, ScratchBufferSize,\r
     PcdGet32 (PcdOvmfDecompressionScratchEnd)));\r
@@ -374,7 +374,7 @@ DecompressMemFvs (
              &AuthenticationStatus\r
              );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Error during GUID section decode\n"));\r
+    DEBUG ((DEBUG_ERROR, "Error during GUID section decode\n"));\r
     return Status;\r
   }\r
 \r
@@ -386,7 +386,7 @@ DecompressMemFvs (
              &FvSection\r
              );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Unable to find PEI FV section\n"));\r
+    DEBUG ((DEBUG_ERROR, "Unable to find PEI FV section\n"));\r
     return Status;\r
   }\r
 \r
@@ -398,7 +398,7 @@ DecompressMemFvs (
   CopyMem (PeiMemFv, (VOID*) (FvSection + 1), PcdGet32 (PcdOvmfPeiMemFvSize));\r
 \r
   if (PeiMemFv->Signature != EFI_FVH_SIGNATURE) {\r
-    DEBUG ((EFI_D_ERROR, "Extracted FV at %p does not have FV header signature\n", PeiMemFv));\r
+    DEBUG ((DEBUG_ERROR, "Extracted FV at %p does not have FV header signature\n", PeiMemFv));\r
     CpuDeadLoop ();\r
     return EFI_VOLUME_CORRUPTED;\r
   }\r
@@ -411,7 +411,7 @@ DecompressMemFvs (
              &FvSection\r
              );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "Unable to find DXE FV section\n"));\r
+    DEBUG ((DEBUG_ERROR, "Unable to find DXE FV section\n"));\r
     return Status;\r
   }\r
 \r
@@ -431,7 +431,7 @@ DecompressMemFvs (
   CopyMem (DxeMemFv, (VOID*) ((UINTN)FvSection + FvHeaderSize), PcdGet32 (PcdOvmfDxeMemFvSize));\r
 \r
   if (DxeMemFv->Signature != EFI_FVH_SIGNATURE) {\r
-    DEBUG ((EFI_D_ERROR, "Extracted FV at %p does not have FV header signature\n", DxeMemFv));\r
+    DEBUG ((DEBUG_ERROR, "Extracted FV at %p does not have FV header signature\n", DxeMemFv));\r
     CpuDeadLoop ();\r
     return EFI_VOLUME_CORRUPTED;\r
   }\r
@@ -474,7 +474,7 @@ FindPeiCoreImageBaseInFv (
                &Section\r
                );\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "Unable to find PEI Core image\n"));\r
+      DEBUG ((DEBUG_ERROR, "Unable to find PEI Core image\n"));\r
       return Status;\r
     }\r
   }\r
@@ -554,14 +554,14 @@ FindPeiCoreImageBase (
     // A malicious runtime OS may have injected something into our previously\r
     // decoded PEI FV, but we don't care about that unless SMM/SMRAM is required.\r
     //\r
-    DEBUG ((EFI_D_VERBOSE, "SEC: S3 resume\n"));\r
+    DEBUG ((DEBUG_VERBOSE, "SEC: S3 resume\n"));\r
     GetS3ResumePeiFv (BootFv);\r
   } else {\r
     //\r
     // We're either not resuming, or resuming "securely" -- we'll decompress\r
     // both PEI FV and DXE FV from pristine flash.\r
     //\r
-    DEBUG ((EFI_D_VERBOSE, "SEC: %a\n",\r
+    DEBUG ((DEBUG_VERBOSE, "SEC: %a\n",\r
       S3Resume ? "S3 resume (with PEI decompression)" : "Normal boot"));\r
     FindMainFv (BootFv);\r
 \r
@@ -739,7 +739,7 @@ SecCoreStartupWithStack (
 \r
   ProcessLibraryConstructorList (NULL, NULL);\r
 \r
-  DEBUG ((EFI_D_INFO,\r
+  DEBUG ((DEBUG_INFO,\r
     "SecCoreStartupWithStack(0x%x, 0x%x)\n",\r
     (UINT32)(UINTN)BootFv,\r
     (UINT32)(UINTN)TopOfCurrentStack\r
@@ -882,7 +882,7 @@ TemporaryRamMigration (
   BOOLEAN                          OldStatus;\r
   BASE_LIBRARY_JUMP_BUFFER         JumpBuffer;\r
 \r
-  DEBUG ((EFI_D_INFO,\r
+  DEBUG ((DEBUG_INFO,\r
     "TemporaryRamMigration(0x%Lx, 0x%Lx, 0x%Lx)\n",\r
     TemporaryMemoryBase,\r
     PermanentMemoryBase,\r
index c8bbc17e907a11af85ac59df70f83184b92f8947..ec4e9a2761959662eaebf46d5df7a3bc95806c70 100644 (file)
@@ -258,7 +258,7 @@ SmmAccessPeiEntryPoint (
   //\r
   HostBridgeDevId = PciRead16 (OVMF_HOSTBRIDGE_DID);\r
   if (HostBridgeDevId != INTEL_Q35_MCH_DEVICE_ID) {\r
-    DEBUG ((EFI_D_ERROR, "%a: no SMRAM with host bridge DID=0x%04x; only "\r
+    DEBUG ((DEBUG_ERROR, "%a: no SMRAM with host bridge DID=0x%04x; only "\r
       "DID=0x%04x (Q35) is supported\n", __FUNCTION__, HostBridgeDevId,\r
       INTEL_Q35_MCH_DEVICE_ID));\r
     goto WrongConfig;\r
@@ -274,7 +274,7 @@ SmmAccessPeiEntryPoint (
   EsmramcVal = PciRead8 (DRAMC_REGISTER_Q35 (MCH_ESMRAMC));\r
   RegMask8 = MCH_ESMRAMC_SM_CACHE | MCH_ESMRAMC_SM_L1 | MCH_ESMRAMC_SM_L2;\r
   if ((EsmramcVal & RegMask8) != RegMask8) {\r
-    DEBUG ((EFI_D_ERROR, "%a: this Q35 implementation lacks SMRAM\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: this Q35 implementation lacks SMRAM\n",\r
       __FUNCTION__));\r
     goto WrongConfig;\r
   }\r
@@ -351,12 +351,12 @@ SmmAccessPeiEntryPoint (
     UINTN Idx;\r
 \r
     Count = SmramMapSize / sizeof SmramMap[0];\r
-    DEBUG ((EFI_D_VERBOSE, "%a: SMRAM map follows, %d entries\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_VERBOSE, "%a: SMRAM map follows, %d entries\n", __FUNCTION__,\r
       (INT32)Count));\r
-    DEBUG ((EFI_D_VERBOSE, "% 20a % 20a % 20a % 20a\n", "PhysicalStart(0x)",\r
+    DEBUG ((DEBUG_VERBOSE, "% 20a % 20a % 20a % 20a\n", "PhysicalStart(0x)",\r
       "PhysicalSize(0x)", "CpuStart(0x)", "RegionState(0x)"));\r
     for (Idx = 0; Idx < Count; ++Idx) {\r
-      DEBUG ((EFI_D_VERBOSE, "% 20Lx % 20Lx % 20Lx % 20Lx\n",\r
+      DEBUG ((DEBUG_VERBOSE, "% 20Lx % 20Lx % 20Lx % 20Lx\n",\r
         SmramMap[Idx].PhysicalStart, SmramMap[Idx].PhysicalSize,\r
         SmramMap[Idx].CpuStart, SmramMap[Idx].RegionState));\r
     }\r
index f8940e4d9b546648f2b28b1c64363f1be58d8d5e..9547c202880ff88b905b99bd903b2fe7e682b0fd 100644 (file)
@@ -204,7 +204,7 @@ SmmControl2DxeEntryPoint (
   //\r
   SmiEnableVal = IoRead32 (mSmiEnable);\r
   if ((SmiEnableVal & ICH9_SMI_EN_APMC_EN) != 0) {\r
-    DEBUG ((EFI_D_ERROR, "%a: this Q35 implementation lacks SMI\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: this Q35 implementation lacks SMI\n",\r
       __FUNCTION__));\r
     goto FatalError;\r
   }\r
@@ -228,7 +228,7 @@ SmmControl2DxeEntryPoint (
   //\r
   IoWrite32 (mSmiEnable, SmiEnableVal & ~(UINT32)ICH9_SMI_EN_GBL_SMI_EN);\r
   if (IoRead32 (mSmiEnable) != SmiEnableVal) {\r
-    DEBUG ((EFI_D_ERROR, "%a: failed to lock down GBL_SMI_EN\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: failed to lock down GBL_SMI_EN\n",\r
       __FUNCTION__));\r
     goto FatalError;\r
   }\r
@@ -250,14 +250,14 @@ SmmControl2DxeEntryPoint (
                     OnS3SaveStateInstalled, NULL /* Context */,\r
                     &mS3SaveStateInstalled);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "%a: CreateEvent: %r\n", __FUNCTION__, Status));\r
+      DEBUG ((DEBUG_ERROR, "%a: CreateEvent: %r\n", __FUNCTION__, Status));\r
       goto FatalError;\r
     }\r
 \r
     Status = gBS->RegisterProtocolNotify (&gEfiS3SaveStateProtocolGuid,\r
                     mS3SaveStateInstalled, &Registration);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "%a: RegisterProtocolNotify: %r\n", __FUNCTION__,\r
+      DEBUG ((DEBUG_ERROR, "%a: RegisterProtocolNotify: %r\n", __FUNCTION__,\r
         Status));\r
       goto ReleaseEvent;\r
     }\r
@@ -267,7 +267,7 @@ SmmControl2DxeEntryPoint (
     //\r
     Status = gBS->SignalEvent (mS3SaveStateInstalled);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "%a: SignalEvent: %r\n", __FUNCTION__, Status));\r
+      DEBUG ((DEBUG_ERROR, "%a: SignalEvent: %r\n", __FUNCTION__, Status));\r
       goto ReleaseEvent;\r
     }\r
   }\r
@@ -280,7 +280,7 @@ SmmControl2DxeEntryPoint (
                   &gEfiSmmControl2ProtocolGuid, &mControl2,\r
                   NULL);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "%a: InstallMultipleProtocolInterfaces: %r\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: InstallMultipleProtocolInterfaces: %r\n",\r
       __FUNCTION__, Status));\r
     goto ReleaseEvent;\r
   }\r
@@ -346,7 +346,7 @@ OnS3SaveStateInstalled (
                           &SmiEnAndMask\r
                           );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "%a: EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE: %r\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: EFI_BOOT_SCRIPT_IO_READ_WRITE_OPCODE: %r\n",\r
       __FUNCTION__, Status));\r
     ASSERT (FALSE);\r
     CpuDeadLoop ();\r
@@ -365,7 +365,7 @@ OnS3SaveStateInstalled (
                           &GenPmCon1AndMask\r
                           );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
       "%a: EFI_BOOT_SCRIPT_PCI_CONFIG_READ_WRITE_OPCODE: %r\n", __FUNCTION__,\r
       Status));\r
     ASSERT (FALSE);\r
index 8fb6cad52dc7c33a3e42fd7f87bdd20f84a7618d..1645100a05d539e84018bb2403a1e82d3a8cb210 100644 (file)
@@ -389,7 +389,7 @@ VirtioGpuExitBoot (
   @retval EFI_SUCCESS            Operation successful.\r
 \r
   @retval EFI_DEVICE_ERROR       The host rejected the request. The host error\r
-                                 code has been logged on the EFI_D_ERROR level.\r
+                                 code has been logged on the DEBUG_ERROR level.\r
 \r
   @return                        Codes for unexpected errors in VirtIo\r
                                  messaging, or request/response\r
@@ -489,7 +489,7 @@ VirtioGpuSendCommand (
   // Verify response size.\r
   //\r
   if (ResponseSize != sizeof Response) {\r
-    DEBUG ((EFI_D_ERROR, "%a: malformed response to Request=0x%x\n",\r
+    DEBUG ((DEBUG_ERROR, "%a: malformed response to Request=0x%x\n",\r
       __FUNCTION__, (UINT32)RequestType));\r
     Status = EFI_PROTOCOL_ERROR;\r
     goto UnmapResponse;\r
@@ -516,7 +516,7 @@ VirtioGpuSendCommand (
     return EFI_SUCCESS;\r
   }\r
 \r
-  DEBUG ((EFI_D_ERROR, "%a: Request=0x%x Response=0x%x\n", __FUNCTION__,\r
+  DEBUG ((DEBUG_ERROR, "%a: Request=0x%x Response=0x%x\n", __FUNCTION__,\r
     (UINT32)RequestType, Response.Type));\r
   return EFI_DEVICE_ERROR;\r
 \r
@@ -546,7 +546,7 @@ UnmapRequest:
   @retval EFI_SUCCESS            Operation successful.\r
 \r
   @retval EFI_DEVICE_ERROR       The host rejected the request. The host error\r
-                                 code has been logged on the EFI_D_ERROR level.\r
+                                 code has been logged on the DEBUG_ERROR level.\r
 \r
   @return                        Codes for unexpected errors in VirtIo\r
                                  messaging.\r
index bf53a9306f52aa2c1345ef5074fb6da0c8fe3cfc..666d577547322ebd825ab119d0c95c1171c17729 100644 (file)
@@ -651,7 +651,7 @@ VirtioGpuDriverBindingStart (
       //\r
       // No child handle should be produced; we're done.\r
       //\r
-      DEBUG ((EFI_D_INFO, "%a: bound VirtIo=%p without producing GOP\n",\r
+      DEBUG ((DEBUG_INFO, "%a: bound VirtIo=%p without producing GOP\n",\r
         __FUNCTION__, (VOID *)VgpuDev->VirtIo));\r
       return EFI_SUCCESS;\r
     }\r
@@ -674,7 +674,7 @@ VirtioGpuDriverBindingStart (
   //\r
   // We're done.\r
   //\r
-  DEBUG ((EFI_D_INFO, "%a: produced GOP %a VirtIo=%p\n", __FUNCTION__,\r
+  DEBUG ((DEBUG_INFO, "%a: produced GOP %a VirtIo=%p\n", __FUNCTION__,\r
     VirtIoBoundJustNow ? "while binding" : "for pre-bound",\r
     (VOID *)VgpuDev->VirtIo));\r
   return EFI_SUCCESS;\r
@@ -756,7 +756,7 @@ VirtioGpuDriverBindingStop (
       break;\r
     }\r
 \r
-    DEBUG ((EFI_D_INFO, "%a: unbinding GOP-less VirtIo=%p\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_INFO, "%a: unbinding GOP-less VirtIo=%p\n", __FUNCTION__,\r
       (VOID *)VgpuDev->VirtIo));\r
 \r
     Status = gBS->UninstallProtocolInterface (ControllerHandle,\r
@@ -797,7 +797,7 @@ VirtioGpuDriverBindingStop (
                         VgpuDev->Child->GopHandle,\r
                         &gVirtioDeviceProtocolGuid));\r
 \r
-    DEBUG ((EFI_D_INFO, "%a: destroying GOP under VirtIo=%p\n", __FUNCTION__,\r
+    DEBUG ((DEBUG_INFO, "%a: destroying GOP under VirtIo=%p\n", __FUNCTION__,\r
       (VOID *)VgpuDev->VirtIo));\r
     UninitVgpuGop (VgpuDev, ControllerHandle, This->DriverBindingHandle);\r
     break;\r
index c32052d83a823acd5f6b990a2bdadeb689ce3008..236cc4789237d6a3d9151ce07099eaa1362db2d4 100644 (file)
@@ -295,7 +295,7 @@ VirtioGpuExitBoot (
   @retval EFI_SUCCESS            Operation successful.\r
 \r
   @retval EFI_DEVICE_ERROR       The host rejected the request. The host error\r
-                                 code has been logged on the EFI_D_ERROR level.\r
+                                 code has been logged on the DEBUG_ERROR level.\r
 \r
   @return                        Codes for unexpected errors in VirtIo\r
                                  messaging.\r
index 69000717828816d147fa885312f52ed7a5f6fdee..6c905b511f80a70635034ff15bfe572a74d589bd 100644 (file)
@@ -44,7 +44,7 @@ XenBusEventChannelAllocate (
                                    EVTCHNOP_alloc_unbound,\r
                                    &Parameter);\r
   if (ReturnCode != 0) {\r
-    DEBUG ((EFI_D_ERROR, "ERROR: alloc_unbound failed with rc=%d", ReturnCode));\r
+    DEBUG ((DEBUG_ERROR, "ERROR: alloc_unbound failed with rc=%d", ReturnCode));\r
     return ReturnCode;\r
   }\r
   *Port = Parameter.port;\r
index 1130404cd198469f3b4e49034518dfc5e9bd64a8..58d687abad6b48d2317cb6aba485eabe5d1ffbd0 100644 (file)
@@ -107,7 +107,7 @@ XenGrantTableEndAccess (
   OldFlags = GrantTable[Ref].flags;\r
   do {\r
     if ((Flags = OldFlags) & (GTF_reading | GTF_writing)) {\r
-      DEBUG ((EFI_D_WARN, "WARNING: g.e. still in use! (%x)\n", Flags));\r
+      DEBUG ((DEBUG_WARN, "WARNING: g.e. still in use! (%x)\n", Flags));\r
       return EFI_NOT_READY;\r
     }\r
     OldFlags = InterlockedCompareExchange16 (&GrantTable[Ref].flags, Flags, 0);\r
@@ -142,7 +142,7 @@ XenGrantTableInit (
     Parameters.gpfn = (xen_pfn_t) ((UINTN) GrantTable >> EFI_PAGE_SHIFT) + Index;\r
     ReturnCode = XenHypercallMemoryOp (XENMEM_add_to_physmap, &Parameters);\r
     if (ReturnCode != 0) {\r
-      DEBUG ((EFI_D_ERROR,\r
+      DEBUG ((DEBUG_ERROR,\r
         "Xen GrantTable, add_to_physmap hypercall error: %Ld\n",\r
         (INT64)ReturnCode));\r
     }\r
@@ -164,11 +164,11 @@ XenGrantTableDeinit (
   for (Index = NR_GRANT_FRAMES - 1; Index >= 0; Index--) {\r
     Parameters.domid = DOMID_SELF;\r
     Parameters.gpfn = (xen_pfn_t) ((UINTN) GrantTable >> EFI_PAGE_SHIFT) + Index;\r
-    DEBUG ((EFI_D_INFO, "Xen GrantTable, removing %Lx\n",\r
+    DEBUG ((DEBUG_INFO, "Xen GrantTable, removing %Lx\n",\r
       (UINT64)Parameters.gpfn));\r
     ReturnCode = XenHypercallMemoryOp (XENMEM_remove_from_physmap, &Parameters);\r
     if (ReturnCode != 0) {\r
-      DEBUG ((EFI_D_ERROR,\r
+      DEBUG ((DEBUG_ERROR,\r
         "Xen GrantTable, remove_from_physmap hypercall error: %Ld\n",\r
         (INT64)ReturnCode));\r
     }\r
index a203beaaa7e74112d8a663f6bc0ada7d980b1c35..f8a41b6d363203e33ec15588c3096c7532504357 100644 (file)
@@ -148,7 +148,7 @@ XenBusAddDevice (
        * happen if a device is going away after\r
        * switching to Closed.\r
        */\r
-      DEBUG ((EFI_D_INFO, "XenBus: Device %a ignored. "\r
+      DEBUG ((DEBUG_INFO, "XenBus: Device %a ignored. "\r
               "State %d\n", DevicePath, State));\r
       Status = EFI_SUCCESS;\r
       goto out;\r
@@ -157,7 +157,7 @@ XenBusAddDevice (
     StatusXenStore = XenStoreRead (XST_NIL, DevicePath, "backend",\r
                                    NULL, (VOID **) &BackendPath);\r
     if (StatusXenStore != XENSTORE_STATUS_SUCCESS) {\r
-      DEBUG ((EFI_D_ERROR, "xenbus: %a no backend path.\n", DevicePath));\r
+      DEBUG ((DEBUG_ERROR, "xenbus: %a no backend path.\n", DevicePath));\r
       Status = EFI_NOT_FOUND;\r
       goto out;\r
     }\r
@@ -197,12 +197,12 @@ XenBusAddDevice (
                Private->Handle,\r
                EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "open by child controller fail (%r)\n",\r
+      DEBUG ((DEBUG_ERROR, "open by child controller fail (%r)\n",\r
               Status));\r
       goto ErrorOpenProtocolByChild;\r
     }\r
   } else {\r
-    DEBUG ((EFI_D_ERROR, "XenBus: does not exist: %a\n", DevicePath));\r
+    DEBUG ((DEBUG_ERROR, "XenBus: does not exist: %a\n", DevicePath));\r
     Status = EFI_NOT_FOUND;\r
   }\r
 \r
@@ -312,7 +312,7 @@ XenBusSetState (
   XENSTORE_STATUS Status;\r
   CHAR8 *Temp;\r
 \r
-  DEBUG ((EFI_D_INFO, "XenBus: Set state to %d\n", NewState));\r
+  DEBUG ((DEBUG_INFO, "XenBus: Set state to %d\n", NewState));\r
 \r
   Status = XenStoreRead (Transaction, This->Node, "state", NULL, (VOID **)&Temp);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
@@ -328,10 +328,10 @@ XenBusSetState (
     Status = XenStoreSPrint (Transaction, This->Node, "state", "%d", NewState);\r
   } while (Status == XENSTORE_STATUS_EAGAIN);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR, "XenBus: failed to write new state\n"));\r
+    DEBUG ((DEBUG_ERROR, "XenBus: failed to write new state\n"));\r
     goto Out;\r
   }\r
-  DEBUG ((EFI_D_INFO, "XenBus: Set state to %d, done\n", NewState));\r
+  DEBUG ((DEBUG_INFO, "XenBus: Set state to %d, done\n", NewState));\r
 \r
 Out:\r
   return Status;\r
index c47fad2e80bb922985bdf529157ddfd2251cfb17..1f5628ad83426ffe67ad5bc4c16794ea44a6ac8b 100644 (file)
@@ -362,7 +362,7 @@ XenBusDxeDriverBindingStart (
 \r
   Status = XenGetSharedInfoPage (Dev);\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "XenBus: Unable to get the shared info page.\n"));\r
+    DEBUG ((DEBUG_ERROR, "XenBus: Unable to get the shared info page.\n"));\r
     Status = EFI_UNSUPPORTED;\r
     goto ErrorAllocated;\r
   }\r
@@ -442,7 +442,7 @@ XenBusDxeDriverBindingStop (
                ControllerHandle,\r
                EFI_OPEN_PROTOCOL_GET_PROTOCOL);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "XenBusDxe: get children protocol failed: %r\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "XenBusDxe: get children protocol failed: %r\n", Status));\r
       continue;\r
     }\r
     ChildData = XENBUS_PRIVATE_DATA_FROM_THIS (XenBusIo);\r
index 41fcb390888c9f9282a49d119629b23cd6d98167..e5cca108e06b3d39223c25d108f47d1df7250daf 100644 (file)
@@ -467,7 +467,7 @@ XenStoreWriteStore (
       Status = XenStoreWaitForEvent (xs.EventChannelEvent,\r
                                      EFI_TIMER_PERIOD_SECONDS (1));\r
       if (Status == EFI_TIMEOUT) {\r
-        DEBUG ((EFI_D_WARN, "XenStore Write, waiting for a ring event.\n"));\r
+        DEBUG ((DEBUG_WARN, "XenStore Write, waiting for a ring event.\n"));\r
       }\r
       continue;\r
     }\r
@@ -546,7 +546,7 @@ XenStoreReadStore (
       Status = XenStoreWaitForEvent (xs.EventChannelEvent,\r
                                      EFI_TIMER_PERIOD_SECONDS (1));\r
       if (Status == EFI_TIMEOUT) {\r
-        DEBUG ((EFI_D_WARN, "XenStore Read, waiting for a ring event.\n"));\r
+        DEBUG ((DEBUG_WARN, "XenStore Read, waiting for a ring event.\n"));\r
       }\r
       continue;\r
     }\r
@@ -617,7 +617,7 @@ XenStoreProcessMessage (
   Status = XenStoreReadStore (&Message->Header, sizeof (Message->Header));\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
     FreePool (Message);\r
-    DEBUG ((EFI_D_ERROR, "XenStore: Error read store (%d)\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "XenStore: Error read store (%d)\n", Status));\r
     return Status;\r
   }\r
 \r
@@ -626,7 +626,7 @@ XenStoreProcessMessage (
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
     FreePool (Body);\r
     FreePool (Message);\r
-    DEBUG ((EFI_D_ERROR, "XenStore: Error read store (%d)\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "XenStore: Error read store (%d)\n", Status));\r
     return Status;\r
   }\r
   Body[Message->Header.len] = '\0';\r
@@ -638,14 +638,14 @@ XenStoreProcessMessage (
     EfiAcquireLock (&xs.RegisteredWatchesLock);\r
     Message->u.Watch.Handle =\r
       XenStoreFindWatch (Message->u.Watch.Vector[XS_WATCH_TOKEN]);\r
-    DEBUG ((EFI_D_INFO, "XenStore: Watch event %a\n",\r
+    DEBUG ((DEBUG_INFO, "XenStore: Watch event %a\n",\r
             Message->u.Watch.Vector[XS_WATCH_TOKEN]));\r
     if (Message->u.Watch.Handle != NULL) {\r
       EfiAcquireLock (&xs.WatchEventsLock);\r
       InsertHeadList (&xs.WatchEvents, &Message->Link);\r
       EfiReleaseLock (&xs.WatchEventsLock);\r
     } else {\r
-      DEBUG ((EFI_D_WARN, "XenStore: Watch handle %a not found\n",\r
+      DEBUG ((DEBUG_WARN, "XenStore: Watch handle %a not found\n",\r
               Message->u.Watch.Vector[XS_WATCH_TOKEN]));\r
       FreePool((VOID*)Message->u.Watch.Vector);\r
       FreePool(Message);\r
@@ -711,7 +711,7 @@ XenStoreGetError (
       return gXenStoreErrors[Index].Status;\r
     }\r
   }\r
-  DEBUG ((EFI_D_WARN, "XenStore gave unknown error %a\n", ErrorStr));\r
+  DEBUG ((DEBUG_WARN, "XenStore gave unknown error %a\n", ErrorStr));\r
   return XENSTORE_STATUS_EINVAL;\r
 }\r
 \r
@@ -738,7 +738,7 @@ XenStoreReadReply (
     XENSTORE_STATUS Status;\r
     Status = XenStoreProcessMessage ();\r
     if (Status != XENSTORE_STATUS_SUCCESS && Status != XENSTORE_STATUS_EAGAIN) {\r
-      DEBUG ((EFI_D_ERROR, "XenStore, error while reading the ring (%d).",\r
+      DEBUG ((DEBUG_ERROR, "XenStore, error while reading the ring (%d).",\r
               Status));\r
       return Status;\r
     }\r
@@ -803,14 +803,14 @@ XenStoreTalkv (
 \r
   Status = XenStoreWriteStore (&Message, sizeof (Message));\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR, "XenStoreTalkv failed %d\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "XenStoreTalkv failed %d\n", Status));\r
     goto Error;\r
   }\r
 \r
   for (Index = 0; Index < NumRequests; Index++) {\r
     Status = XenStoreWriteStore (WriteRequest[Index].Data, WriteRequest[Index].Len);\r
     if (Status != XENSTORE_STATUS_SUCCESS) {\r
-      DEBUG ((EFI_D_ERROR, "XenStoreTalkv failed %d\n", Status));\r
+      DEBUG ((DEBUG_ERROR, "XenStoreTalkv failed %d\n", Status));\r
       goto Error;\r
     }\r
   }\r
@@ -1006,7 +1006,7 @@ XenStoreInitComms (
   while (XenStore->rsp_prod != XenStore->rsp_cons) {\r
     Status = gBS->CheckEvent (TimerEvent);\r
     if (!EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_WARN, "XENSTORE response ring is not quiescent "\r
+      DEBUG ((DEBUG_WARN, "XENSTORE response ring is not quiescent "\r
               "(%08x:%08x): fixing up\n",\r
               XenStore->rsp_cons, XenStore->rsp_prod));\r
       XenStore->rsp_cons = XenStore->rsp_prod;\r
@@ -1046,7 +1046,7 @@ XenStoreInit (
   xs.EventChannel = (evtchn_port_t)XenHypercallHvmGetParam (HVM_PARAM_STORE_EVTCHN);\r
   XenStoreGpfn = (UINTN)XenHypercallHvmGetParam (HVM_PARAM_STORE_PFN);\r
   xs.XenStore = (VOID *) (XenStoreGpfn << EFI_PAGE_SHIFT);\r
-  DEBUG ((EFI_D_INFO, "XenBusInit: XenBus rings @%p, event channel %x\n",\r
+  DEBUG ((DEBUG_INFO, "XenBusInit: XenBus rings @%p, event channel %x\n",\r
           xs.XenStore, xs.EventChannel));\r
 \r
   InitializeListHead (&xs.ReplyList);\r
@@ -1076,7 +1076,7 @@ XenStoreDeinit (
   if (!IsListEmpty (&xs.RegisteredWatches)) {\r
     XENSTORE_WATCH *Watch;\r
     LIST_ENTRY *Entry;\r
-    DEBUG ((EFI_D_WARN, "XenStore: RegisteredWatches is not empty, cleaning up..."));\r
+    DEBUG ((DEBUG_WARN, "XenStore: RegisteredWatches is not empty, cleaning up..."));\r
     Entry = GetFirstNode (&xs.RegisteredWatches);\r
     while (!IsNull (&xs.RegisteredWatches, Entry)) {\r
       Watch = XENSTORE_WATCH_FROM_LINK (Entry);\r
@@ -1092,7 +1092,7 @@ XenStoreDeinit (
   //\r
   if (!IsListEmpty (&xs.WatchEvents)) {\r
     LIST_ENTRY *Entry;\r
-    DEBUG ((EFI_D_WARN, "XenStore: WatchEvents is not empty, cleaning up..."));\r
+    DEBUG ((DEBUG_WARN, "XenStore: WatchEvents is not empty, cleaning up..."));\r
     Entry = GetFirstNode (&xs.WatchEvents);\r
     while (!IsNull (&xs.WatchEvents, Entry)) {\r
       XENSTORE_MESSAGE *Message = XENSTORE_MESSAGE_FROM_LINK (Entry);\r
index 5e7bd94b8951e01a0cf329c55feeec02657bd0f2..0b3fd03e08d3dc3f0399e03bb9bff1baf93f727a 100644 (file)
@@ -175,7 +175,7 @@ XenIoPciDeviceBindingStart (
   ASSERT (BarDesc->ResType == ACPI_ADDRESS_SPACE_TYPE_MEM);\r
 \r
   /* Get a Memory address for mapping the Grant Table. */\r
-  DEBUG ((EFI_D_INFO, "XenIoPci: BAR at %LX\n", BarDesc->AddrRangeMin));\r
+  DEBUG ((DEBUG_INFO, "XenIoPci: BAR at %LX\n", BarDesc->AddrRangeMin));\r
   XenIo->GrantTableAddress = BarDesc->AddrRangeMin;\r
   FreePool (BarDesc);\r
 \r
index f57f8573156843260d86cbe8b0f34df88d44c545..122a6baed25a637668a53b7dd029a6ac48a40dc3 100644 (file)
@@ -123,7 +123,7 @@ XenPvBlkWaitForBackendState (
       Status = XENSTORE_STATUS_FAIL;\r
       break;\r
     }\r
-    DEBUG ((EFI_D_INFO,\r
+    DEBUG ((DEBUG_INFO,\r
             "XenPvBlk: waiting backend state %d, current: %d\n",\r
             ExpectedState, State));\r
     XenBusIo->WaitForWatch (XenBusIo, Dev->StateWatchToken);\r
@@ -171,12 +171,12 @@ XenPvBlockFrontInitialization (
   if (Dev->MediaInfo.CdRom) {\r
     Status = XenBusIo->XsBackendRead (XenBusIo, XST_NIL, "params", (VOID**)&Params);\r
     if (Status != XENSTORE_STATUS_SUCCESS) {\r
-      DEBUG ((EFI_D_ERROR, "%a: Failed to read params (%d)\n", __FUNCTION__, Status));\r
+      DEBUG ((DEBUG_ERROR, "%a: Failed to read params (%d)\n", __FUNCTION__, Status));\r
       goto Error;\r
     }\r
     if (AsciiStrLen (Params) == 0 || AsciiStrCmp (Params, "aio:") == 0) {\r
       FreePool (Params);\r
-      DEBUG ((EFI_D_INFO, "%a: Empty cdrom\n", __FUNCTION__));\r
+      DEBUG ((DEBUG_INFO, "%a: Empty cdrom\n", __FUNCTION__));\r
       goto Error;\r
     }\r
     FreePool (Params);\r
@@ -184,7 +184,7 @@ XenPvBlockFrontInitialization (
 \r
   Status = XenBusReadUint64 (XenBusIo, "backend-id", FALSE, &Value);\r
   if (Status != XENSTORE_STATUS_SUCCESS || Value > MAX_UINT16) {\r
-    DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to get backend-id (%d)\n",\r
+    DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to get backend-id (%d)\n",\r
             Status));\r
     goto Error;\r
   }\r
@@ -203,32 +203,32 @@ XenPvBlockFrontInitialization (
 Again:\r
   Status = XenBusIo->XsTransactionStart (XenBusIo, &Transaction);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_WARN, "XenPvBlk: Failed to start transaction, %d\n", Status));\r
+    DEBUG ((DEBUG_WARN, "XenPvBlk: Failed to start transaction, %d\n", Status));\r
     goto Error;\r
   }\r
 \r
   Status = XenBusIo->XsPrintf (XenBusIo, &Transaction, NodeName, "ring-ref", "%d",\r
                                Dev->RingRef);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to write ring-ref.\n"));\r
+    DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to write ring-ref.\n"));\r
     goto AbortTransaction;\r
   }\r
   Status = XenBusIo->XsPrintf (XenBusIo, &Transaction, NodeName,\r
                                "event-channel", "%d", Dev->EventChannel);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to write event-channel.\n"));\r
+    DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to write event-channel.\n"));\r
     goto AbortTransaction;\r
   }\r
   Status = XenBusIo->XsPrintf (XenBusIo, &Transaction, NodeName,\r
                                "protocol", "%a", XEN_IO_PROTO_ABI_NATIVE);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to write protocol.\n"));\r
+    DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to write protocol.\n"));\r
     goto AbortTransaction;\r
   }\r
 \r
   Status = XenBusIo->SetState (XenBusIo, &Transaction, XenbusStateConnected);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR, "XenPvBlk: Failed to switch state.\n"));\r
+    DEBUG ((DEBUG_ERROR, "XenPvBlk: Failed to switch state.\n"));\r
     goto AbortTransaction;\r
   }\r
 \r
@@ -244,7 +244,7 @@ Again:
   //\r
   Status = XenPvBlkWaitForBackendState (Dev, XenbusStateConnected, &State);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
             "XenPvBlk: backend for %a/%d not available, rc=%d state=%d\n",\r
             XenBusIo->Type, XenBusIo->DeviceId, Status, State));\r
     goto Error2;\r
@@ -274,7 +274,7 @@ Again:
     //\r
     // This is not supported by the driver.\r
     //\r
-    DEBUG ((EFI_D_ERROR, "XenPvBlk: Unsupported sector-size value %Lu, "\r
+    DEBUG ((DEBUG_ERROR, "XenPvBlk: Unsupported sector-size value %Lu, "\r
             "it must be a multiple of 512\n", Value));\r
     goto Error2;\r
   }\r
@@ -298,7 +298,7 @@ Again:
     Dev->MediaInfo.FeatureFlushCache = FALSE;\r
   }\r
 \r
-  DEBUG ((EFI_D_INFO, "XenPvBlk: New disk with %ld sectors of %d bytes\n",\r
+  DEBUG ((DEBUG_INFO, "XenPvBlk: New disk with %ld sectors of %d bytes\n",\r
           Dev->MediaInfo.Sectors, Dev->MediaInfo.SectorSize));\r
 \r
   *DevPtr = Dev;\r
@@ -330,7 +330,7 @@ XenPvBlockFrontShutdown (
 \r
   Status = XenBusIo->SetState (XenBusIo, XST_NIL, XenbusStateClosing);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
             "XenPvBlk: error while changing state to Closing: %d\n",\r
             Status));\r
     goto Close;\r
@@ -338,7 +338,7 @@ XenPvBlockFrontShutdown (
 \r
   Status = XenPvBlkWaitForBackendState (Dev, XenbusStateClosing, NULL);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
             "XenPvBlk: error while waiting for closing backend state: %d\n",\r
             Status));\r
     goto Close;\r
@@ -346,7 +346,7 @@ XenPvBlockFrontShutdown (
 \r
   Status = XenBusIo->SetState (XenBusIo, XST_NIL, XenbusStateClosed);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
             "XenPvBlk: error while changing state to Closed: %d\n",\r
             Status));\r
     goto Close;\r
@@ -354,7 +354,7 @@ XenPvBlockFrontShutdown (
 \r
   Status = XenPvBlkWaitForBackendState (Dev, XenbusStateClosed, NULL);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
             "XenPvBlk: error while waiting for closed backend state: %d\n",\r
             Status));\r
     goto Close;\r
@@ -362,7 +362,7 @@ XenPvBlockFrontShutdown (
 \r
   Status = XenBusIo->SetState (XenBusIo, XST_NIL, XenbusStateInitialising);\r
   if (Status != XENSTORE_STATUS_SUCCESS) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
             "XenPvBlk: error while changing state to initialising: %d\n",\r
             Status));\r
     goto Close;\r
@@ -371,7 +371,7 @@ XenPvBlockFrontShutdown (
   while (TRUE) {\r
     Status = XenBusReadUint64 (XenBusIo, "state", TRUE, &Value);\r
     if (Status != XENSTORE_STATUS_SUCCESS) {\r
-      DEBUG ((EFI_D_ERROR,\r
+      DEBUG ((DEBUG_ERROR,\r
               "XenPvBlk: error while waiting for new backend state: %d\n",\r
               Status));\r
       goto Close;\r
@@ -379,7 +379,7 @@ XenPvBlockFrontShutdown (
     if (Value <= XenbusStateInitWait || Value >= XenbusStateClosed) {\r
       break;\r
     }\r
-    DEBUG ((EFI_D_INFO,\r
+    DEBUG ((DEBUG_INFO,\r
             "XenPvBlk: waiting backend state %d, current: %Lu\n",\r
             XenbusStateInitWait, Value));\r
     XenBusIo->WaitForWatch (XenBusIo, Dev->StateWatchToken);\r
@@ -473,7 +473,7 @@ XenPvBlockAsyncIo (
     UINT32 ReturnCode;\r
     ReturnCode = XenBusIo->EventChannelNotify (XenBusIo, Dev->EventChannel);\r
     if (ReturnCode != 0) {\r
-      DEBUG ((EFI_D_ERROR,\r
+      DEBUG ((DEBUG_ERROR,\r
               "XenPvBlk: Unexpected return value from EventChannelNotify: %d\n",\r
               ReturnCode));\r
     }\r
@@ -528,7 +528,7 @@ XenPvBlockPushOperation (
     UINT32 ReturnCode;\r
     ReturnCode = XenBusIo->EventChannelNotify (XenBusIo, Dev->EventChannel);\r
     if (ReturnCode != 0) {\r
-      DEBUG ((EFI_D_ERROR,\r
+      DEBUG ((DEBUG_ERROR,\r
               "XenPvBlk: Unexpected return value from EventChannelNotify: %d\n",\r
               ReturnCode));\r
     }\r
@@ -590,7 +590,7 @@ XenPvBlockAsyncIoPoll (
           INT32 Index;\r
 \r
           if (Status != BLKIF_RSP_OKAY) {\r
-            DEBUG ((EFI_D_ERROR,\r
+            DEBUG ((DEBUG_ERROR,\r
                     "XenPvBlk: "\r
                     "%a error %d on %a at sector %Lx, num bytes %Lx\n",\r
                     Response->operation == BLKIF_OP_READ ? "read" : "write",\r
@@ -608,17 +608,17 @@ XenPvBlockAsyncIoPoll (
 \r
       case BLKIF_OP_WRITE_BARRIER:\r
         if (Status != BLKIF_RSP_OKAY) {\r
-          DEBUG ((EFI_D_ERROR, "XenPvBlk: write barrier error %d\n", Status));\r
+          DEBUG ((DEBUG_ERROR, "XenPvBlk: write barrier error %d\n", Status));\r
         }\r
         break;\r
       case BLKIF_OP_FLUSH_DISKCACHE:\r
         if (Status != BLKIF_RSP_OKAY) {\r
-          DEBUG ((EFI_D_ERROR, "XenPvBlk: flush error %d\n", Status));\r
+          DEBUG ((DEBUG_ERROR, "XenPvBlk: flush error %d\n", Status));\r
         }\r
         break;\r
 \r
       default:\r
-        DEBUG ((EFI_D_ERROR,\r
+        DEBUG ((DEBUG_ERROR,\r
                 "XenPvBlk: unrecognized block operation %d response (status %d)\n",\r
                 Response->operation, Status));\r
         break;\r
index b3a527e4e3037dbb0ae75b747955ddac8af566fc..c013fc80f0126660d31dd49a94e0d6e54b456233 100644 (file)
@@ -89,14 +89,14 @@ XenPvBlkDxeBlockIoReadWriteBlocks (
   }\r
 \r
   if (BufferSize % Media->BlockSize != 0) {\r
-    DEBUG ((EFI_D_ERROR, "XenPvBlkDxe: Bad buffer size: 0x%Lx\n",\r
+    DEBUG ((DEBUG_ERROR, "XenPvBlkDxe: Bad buffer size: 0x%Lx\n",\r
       (UINT64)BufferSize));\r
     return EFI_BAD_BUFFER_SIZE;\r
   }\r
 \r
   if (Lba > Media->LastBlock ||\r
       (BufferSize / Media->BlockSize) - 1 > Media->LastBlock - Lba) {\r
-    DEBUG ((EFI_D_ERROR,\r
+    DEBUG ((DEBUG_ERROR,\r
       "XenPvBlkDxe: %a with invalid LBA: 0x%Lx, size: 0x%Lx\n",\r
       IsWrite ? "Write" : "Read", Lba, (UINT64)BufferSize));\r
     return EFI_INVALID_PARAMETER;\r
@@ -150,7 +150,7 @@ XenPvBlkDxeBlockIoReadWriteBlocks (
     Sector += IoData.Size / 512;\r
     Status = XenPvBlockIo (&IoData, IsWrite);\r
     if (EFI_ERROR (Status)) {\r
-      DEBUG ((EFI_D_ERROR, "XenPvBlkDxe: Error during %a operation.\n",\r
+      DEBUG ((DEBUG_ERROR, "XenPvBlkDxe: Error during %a operation.\n",\r
               IsWrite ? "write" : "read"));\r
       return Status;\r
     }\r
index 779a7f630c03043ec7bb0899edcdfbab8752b14f..1440e1d23b66fdebdd82483bb0281be8cc99b2c2 100644 (file)
@@ -304,7 +304,7 @@ XenPvBlkDxeDriverBindingStart (
                     NULL\r
                     );\r
   if (EFI_ERROR (Status)) {\r
-    DEBUG ((EFI_D_ERROR, "XenPvBlk: install protocol fail: %r\n", Status));\r
+    DEBUG ((DEBUG_ERROR, "XenPvBlk: install protocol fail: %r\n", Status));\r
     goto UninitBlockFront;\r
   }\r
 \r