From 0e549d5be531a840503445d38b4dad2315ef3413 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Mon, 27 Oct 2008 10:13:00 +0000 Subject: Make use of correct format String: 1) UINT64 should use %lx 2) POINTER type should use %p 3) EFI_STATUS should use %r git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6253 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c | 4 ++-- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'MdeModulePkg/Bus/Usb/UsbBusDxe') diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c index b4231079ce..fc9bd5335f 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c @@ -994,7 +994,7 @@ UsbBusBuildProtocol ( UsbBus->Devices[0] = RootHub; - DEBUG ((EFI_D_INFO, "UsbBusStart: usb bus started on %x, root hub %x\n", Controller, RootIf)); + DEBUG ((EFI_D_INFO, "UsbBusStart: usb bus started on %p, root hub %p\n", Controller, RootIf)); return EFI_SUCCESS; FREE_ROOTHUB: @@ -1355,7 +1355,7 @@ UsbBusControllerDriverStop ( return EFI_SUCCESS; } - DEBUG (( EFI_D_INFO, "UsbBusStop: usb bus stopped on %x\n", Controller)); + DEBUG (( EFI_D_INFO, "UsbBusStop: usb bus stopped on %p\n", Controller)); // // Locate USB_BUS for the current host controller diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c index 2a1ee0af10..4a2e382cd7 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbHub.c @@ -983,7 +983,7 @@ UsbRootHubInit ( return Status; } - DEBUG (( EFI_D_INFO, "UsbRootHubInit: root hub %x - max speed %d, %d ports\n", + DEBUG (( EFI_D_INFO, "UsbRootHubInit: root hub %p - max speed %d, %d ports\n", HubIf, MaxSpeed, NumOfPort)); HubIf->IsHub = TRUE; @@ -1274,7 +1274,7 @@ UsbRootHubRelease ( IN USB_INTERFACE *HubIf ) { - DEBUG (( EFI_D_INFO, "UsbRootHubRelease: root hub released for hub %x\n", HubIf)); + DEBUG (( EFI_D_INFO, "UsbRootHubRelease: root hub released for hub %p\n", HubIf)); gBS->SetTimer (HubIf->HubNotify, TimerCancel, USB_ROOTHUB_POLL_INTERVAL); gBS->CloseEvent (HubIf->HubNotify); -- cgit v1.2.3