X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FUhciDxe%2FUsbHcMem.c;h=c7881ecf35d827590c95c6c1df4e3526870e0a3f;hb=1c61953576f35507eb24032fe2804eaf9a0e976c;hp=5e02a0d3b8737a0eae7b555f4333b9eef8e8e160;hpb=d1f076304d3be2f1423ba8d62062253cb0d59354;p=mirror_edk2.git diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.c b/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.c index 5e02a0d3b8..c7881ecf35 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.c +++ b/MdeModulePkg/Bus/Pci/UhciDxe/UsbHcMem.c @@ -23,9 +23,6 @@ Revision History #include "Uhci.h" -UINTN mUsbHcDebugLevel = DEBUG_INFO; - - /** Allocate a block of memory to be used by the buffer pool @@ -116,9 +113,6 @@ UsbHcAllocMemBlock ( Block->Buf = (UINT8 *) ((UINTN) MappedAddr); Block->Mapping = Mapping; - DEBUG ((mUsbHcDebugLevel, "UsbHcAllocMemBlock: block %x created with buffer %x\n", - Block, Block->Buf)); - return Block; FREE_BUFFER: @@ -454,7 +448,7 @@ UsbHcAllocateMem ( NewBlock = UsbHcAllocMemBlock (Pool, Pages); if (NewBlock == NULL) { - DEBUG ((mUsbHcDebugLevel, "UsbHcAllocateMem: failed to allocate block\n")); + DEBUG ((EFI_D_INFO, "UsbHcAllocateMem: failed to allocate block\n")); return NULL; } @@ -538,8 +532,6 @@ UsbHcFreeMem ( // Release the current memory block if it is empty and not the head // if ((Block != Head) && UsbHcIsMemBlockEmpty (Block)) { - DEBUG ((mUsbHcDebugLevel, "UsbHcFreeMem: block %x is empty, recycle\n", Block)); - UsbHcUnlinkMemBlock (Head, Block); UsbHcFreeMemBlock (Pool, Block); }