summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenPvBlkDxe
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2015-07-28 18:33:23 +0000
committerlersek <lersek@Edk2>2015-07-28 18:33:23 +0000
commit6394c35a7db3d7a7cc68f491179a45fe430a335a (patch)
tree537f8795716d685c64e7ea96c7455a022e6bf09d /OvmfPkg/XenPvBlkDxe
parent00899456b809b7a0809e92d3e020435eece0effd (diff)
downloadedk2-6394c35a7db3d7a7cc68f491179a45fe430a335a.tar.gz
edk2-6394c35a7db3d7a7cc68f491179a45fe430a335a.tar.bz2
edk2-6394c35a7db3d7a7cc68f491179a45fe430a335a.zip
OvmfPkg: fix conversion specifiers in DEBUG format strings
Cc: Scott Duplichan <scott@notabs.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Reported-by: Scott Duplichan <scott@notabs.org> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Build-tested-by: Scott Duplichan <scott@notabs.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18095 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/XenPvBlkDxe')
-rw-r--r--OvmfPkg/XenPvBlkDxe/BlockFront.c10
-rw-r--r--OvmfPkg/XenPvBlkDxe/BlockIo.c8
2 files changed, 10 insertions, 8 deletions
diff --git a/OvmfPkg/XenPvBlkDxe/BlockFront.c b/OvmfPkg/XenPvBlkDxe/BlockFront.c
index afaa95983b..256ac55f25 100644
--- a/OvmfPkg/XenPvBlkDxe/BlockFront.c
+++ b/OvmfPkg/XenPvBlkDxe/BlockFront.c
@@ -278,7 +278,7 @@ Again:
//
// This is not supported by the driver.
//
- DEBUG ((EFI_D_ERROR, "XenPvBlk: Unsupported sector-size value %d, "
+ DEBUG ((EFI_D_ERROR, "XenPvBlk: Unsupported sector-size value %Lu, "
"it must be a multiple of 512\n", Value));
goto Error2;
}
@@ -384,7 +384,7 @@ XenPvBlockFrontShutdown (
break;
}
DEBUG ((EFI_D_INFO,
- "XenPvBlk: waiting backend state %d, current: %d\n",
+ "XenPvBlk: waiting backend state %d, current: %Lu\n",
XenbusStateInitWait, Value));
XenBusIo->WaitForWatch (XenBusIo, Dev->StateWatchToken);
}
@@ -596,11 +596,11 @@ XenPvBlockAsyncIoPoll (
if (Status != BLKIF_RSP_OKAY) {
DEBUG ((EFI_D_ERROR,
"XenPvBlk: "
- "%a error %d on %a at sector %p, num bytes %p\n",
+ "%a error %d on %a at sector %Lx, num bytes %Lx\n",
Response->operation == BLKIF_OP_READ ? "read" : "write",
Status, IoData->Dev->NodeName,
- IoData->Sector,
- IoData->Size));
+ (UINT64)IoData->Sector,
+ (UINT64)IoData->Size));
}
for (Index = 0; Index < IoData->NumRef; Index++) {
diff --git a/OvmfPkg/XenPvBlkDxe/BlockIo.c b/OvmfPkg/XenPvBlkDxe/BlockIo.c
index 7fc7a05b4c..ae6aa62ac0 100644
--- a/OvmfPkg/XenPvBlkDxe/BlockIo.c
+++ b/OvmfPkg/XenPvBlkDxe/BlockIo.c
@@ -95,14 +95,16 @@ XenPvBlkDxeBlockIoReadWriteBlocks (
}
if (BufferSize % Media->BlockSize != 0) {
- DEBUG ((EFI_D_ERROR, "XenPvBlkDxe: Bad buffer size: 0x%X\n", BufferSize));
+ DEBUG ((EFI_D_ERROR, "XenPvBlkDxe: Bad buffer size: 0x%Lx\n",
+ (UINT64)BufferSize));
return EFI_BAD_BUFFER_SIZE;
}
if (Lba > Media->LastBlock ||
(BufferSize / Media->BlockSize) - 1 > Media->LastBlock - Lba) {
- DEBUG ((EFI_D_ERROR, "XenPvBlkDxe: %a with invalid LBA: 0x%LX, size: 0x%x\n",
- IsWrite ? "Write" : "Read", Lba, BufferSize));
+ DEBUG ((EFI_D_ERROR,
+ "XenPvBlkDxe: %a with invalid LBA: 0x%Lx, size: 0x%Lx\n",
+ IsWrite ? "Write" : "Read", Lba, (UINT64)BufferSize));
return EFI_INVALID_PARAMETER;
}