From b5d4a35d90771ec86ce9cf28727f471ee589fb78 Mon Sep 17 00:00:00 2001 From: Michael Kubacki Date: Wed, 3 Nov 2021 23:16:25 +0800 Subject: MdeModulePkg/XhciSched: Fix missing DEBUG arguments 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 Cc: Liming Gao Cc: Hao A Wu Cc: Ray Ni Signed-off-by: Michael Kubacki Reviewed-by: Hao A Wu Reviewed-by: Liming Gao --- MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c index 7cbc9a8502..6fcd2be627 100644 --- a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c +++ b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c @@ -2299,7 +2299,7 @@ XhcInitializeDeviceSlot ( DEBUG ((EFI_D_INFO, " Address %d assigned successfully\n", DeviceAddress)); Xhc->UsbDevContext[SlotId].XhciDevAddr = DeviceAddress; } else { - DEBUG ((DEBUG_INFO, " Address %d assigned unsuccessfully\n")); + DEBUG ((DEBUG_ERROR, " Slot %d address not assigned successfully. Status = %r\n", SlotId, Status)); XhcDisableSlotCmd (Xhc, SlotId); } @@ -2512,7 +2512,7 @@ XhcInitializeDeviceSlot64 ( DEBUG ((EFI_D_INFO, " Address %d assigned successfully\n", DeviceAddress)); Xhc->UsbDevContext[SlotId].XhciDevAddr = DeviceAddress; } else { - DEBUG ((DEBUG_INFO, " Address %d assigned unsuccessfully\n")); + DEBUG ((DEBUG_ERROR, " Slot %d address not assigned successfully. Status = %r\n", SlotId, Status)); XhcDisableSlotCmd64 (Xhc, SlotId); } -- cgit v1.2.3