]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/XhciSched: Fix missing DEBUG arguments
authorMichael Kubacki <michael.kubacki@microsoft.com>
Wed, 3 Nov 2021 15:16:25 +0000 (23:16 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 8 Nov 2021 04:08:08 +0000 (04:08 +0000)
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3662

Two DEBUG macros in XhciDxe/XhciSched.c are missing the argument
that should be passed for the print specifier.

In addition, this change updates the print level to "DEBUG_ERROR"
and prints the status as well.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Hao A Wu <hao.a.wu@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c

index 7cbc9a8502eab0aebc282e516e71f37494cb24e2..6fcd2be6277ce32ab9a73aa28e5df392fa21947e 100644 (file)
@@ -2299,7 +2299,7 @@ XhcInitializeDeviceSlot (
     DEBUG ((EFI_D_INFO, "    Address %d assigned successfully\n", DeviceAddress));\r
     Xhc->UsbDevContext[SlotId].XhciDevAddr = DeviceAddress;\r
   } else {\r
-    DEBUG ((DEBUG_INFO, "    Address %d assigned unsuccessfully\n"));\r
+    DEBUG ((DEBUG_ERROR, "    Slot %d address not assigned successfully. Status = %r\n", SlotId, Status));\r
     XhcDisableSlotCmd (Xhc, SlotId);\r
   }\r
 \r
@@ -2512,7 +2512,7 @@ XhcInitializeDeviceSlot64 (
     DEBUG ((EFI_D_INFO, "    Address %d assigned successfully\n", DeviceAddress));\r
     Xhc->UsbDevContext[SlotId].XhciDevAddr = DeviceAddress;\r
   } else {\r
-    DEBUG ((DEBUG_INFO, "    Address %d assigned unsuccessfully\n"));\r
+    DEBUG ((DEBUG_ERROR, "    Slot %d address not assigned successfully. Status = %r\n", SlotId, Status));\r
     XhcDisableSlotCmd64 (Xhc, SlotId);\r
   }\r
 \r