The driver wrappers BlockMmio protocol instances to produce\r
Block I/O Protocol instances.\r
\r
- Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
OUT VOID *Buffer\r
)\r
{\r
- DEBUG ((EFI_D_INFO, "BlockIo (MMIO) ReadBlocks: lba=0x%lx, size=0x%x\n", Lba, BufferSize));\r
+ DEBUG ((EFI_D_INFO, "BlockIo (MMIO) ReadBlocks: lba=0x%Lx, size=0x%Lx\n",\r
+ Lba, (UINT64)BufferSize));\r
return ReadOrWriteBlocks (\r
This,\r
TRUE,\r
IN VOID *Buffer\r
)\r
{\r
- DEBUG ((EFI_D_INFO, "BlockIo (MMIO) WriteBlocks: lba=0x%lx, size=0x%x\n", Lba, BufferSize));\r
+ DEBUG ((EFI_D_INFO, "BlockIo (MMIO) WriteBlocks: lba=0x%Lx, size=0x%Lx\n",\r
+ Lba, (UINT64)BufferSize));\r
return ReadOrWriteBlocks (\r
This,\r
FALSE,\r
BLOCK_MMIO_TO_BLOCK_IO_DEVICE *Private;\r
BLOCK_MMIO_PROTOCOL *BlockMmio;\r
\r
- Private = (BLOCK_MMIO_TO_BLOCK_IO_DEVICE*) AllocateZeroPool (sizeof (Private));\r
+ Private = (BLOCK_MMIO_TO_BLOCK_IO_DEVICE*) AllocateZeroPool (sizeof (*Private));\r
ASSERT (Private != NULL);\r
\r
Status = gBS->LocateProtocol (\r
DEBUG ((EFI_D_ERROR, "BlockIoInit: OpenBlockMmioProtocol By Driver (%r)\n", Status));\r
goto ON_ERROR;\r
}\r
- DEBUG ((EFI_D_INFO, "BlockMmio: 0x%x\n", BlockMmio));\r
+ DEBUG ((EFI_D_INFO, "BlockMmio: %p\n", BlockMmio));\r
DEBUG ((EFI_D_INFO, "BlockMmio->Media->LastBlock: 0x%lx\n", BlockMmio->Media->LastBlock));\r
\r
Private->Signature = BLOCK_MMIO_TO_BLOCK_IO_SIGNATURE;\r