From 60aa3a0e739e5eb4a3c8028380fae725bba5b567 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 2 Aug 2017 11:42:14 +0200 Subject: OvmfPkg/IoMmuDxe: convert UINTN arguments to UINT64 for the %Lx fmt spec The portable way to print UINTN values is to use the %Lx format specifier, and to convert the values to UINT64. The second step is currently missing, add it. Cc: Ard Biesheuvel Cc: Brijesh Singh Cc: Jordan Justen Cc: Tom Lendacky Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Tested-by: Brijesh Singh Reviewed-by: Brijesh Singh --- OvmfPkg/IoMmuDxe/AmdSevIoMmu.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'OvmfPkg') diff --git a/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c b/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c index dfad2cbb56..9540624427 100644 --- a/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c +++ b/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c @@ -203,8 +203,8 @@ IoMmuMap ( __FUNCTION__, MapInfo->PlainTextAddress, MapInfo->CryptedAddress, - MapInfo->NumberOfPages, - MapInfo->NumberOfBytes + (UINT64)MapInfo->NumberOfPages, + (UINT64)MapInfo->NumberOfBytes )); return EFI_SUCCESS; @@ -267,8 +267,8 @@ IoMmuUnmap ( __FUNCTION__, MapInfo->PlainTextAddress, MapInfo->CryptedAddress, - MapInfo->NumberOfPages, - MapInfo->NumberOfBytes + (UINT64)MapInfo->NumberOfPages, + (UINT64)MapInfo->NumberOfBytes )); // // Restore the memory encryption mask @@ -376,7 +376,7 @@ IoMmuAllocateBuffer ( "%a Address 0x%Lx Pages 0x%Lx\n", __FUNCTION__, PhysicalAddress, - Pages + (UINT64)Pages )); return Status; } @@ -419,8 +419,8 @@ IoMmuFreeBuffer ( DEBUG_VERBOSE, "%a Address 0x%Lx Pages 0x%Lx\n", __FUNCTION__, - (UINTN)HostAddress, - Pages + (UINT64)(UINTN)HostAddress, + (UINT64)Pages )); return gBS->FreePages ((EFI_PHYSICAL_ADDRESS) (UINTN) HostAddress, Pages); } -- cgit v1.2.3