]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/BlockMmioToBlockIoDxe/BlockIo.c
IntelFsp2Pkg: Add missing License.txt.
[mirror_edk2.git] / OvmfPkg / BlockMmioToBlockIoDxe / BlockIo.c
index cf68ceaae9ec875fd93d691d57354a02c6890afe..939792f2ada255f7b30cd5ca9587c36b39effffc 100644 (file)
@@ -2,8 +2,8 @@
   The driver wrappers BlockMmio protocol instances to produce\r
   Block I/O Protocol instances.\r
 \r
-  Copyright (c) 2007 - 2010, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\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
   http://opensource.org/licenses/bsd-license.php\r
@@ -187,7 +187,8 @@ BlockIoReadBlocks (
   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
@@ -234,7 +235,8 @@ BlockIoWriteBlocks (
   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
@@ -287,7 +289,7 @@ BlockIoInit (
   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
@@ -309,7 +311,7 @@ BlockIoInit (
     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