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