summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/XenPvBlkDxe
diff options
context:
space:
mode:
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;
}