]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/PciHostBridgeLib/PciHostBridgeLib.c
OvmfPkg: replace old EFI_D_ debug levels with new DEBUG_ ones
[mirror_edk2.git] / OvmfPkg / Library / PciHostBridgeLib / PciHostBridgeLib.c
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