diff options
author | Laszlo Ersek <lersek@redhat.com> | 2017-08-02 11:42:14 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2017-08-05 01:31:52 +0200 |
commit | 60aa3a0e739e5eb4a3c8028380fae725bba5b567 (patch) | |
tree | bd740a5d10d180505114ab8a747a4dd09d8bd06c | |
parent | c7ef2ed274a4f58a3070699852073f3cc56afca6 (diff) | |
download | edk2-60aa3a0e739e5eb4a3c8028380fae725bba5b567.tar.gz edk2-60aa3a0e739e5eb4a3c8028380fae725bba5b567.tar.bz2 edk2-60aa3a0e739e5eb4a3c8028380fae725bba5b567.zip |
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 <ard.biesheuvel@linaro.org>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Brijesh Singh <brijesh.singh@amd.com>
-rw-r--r-- | OvmfPkg/IoMmuDxe/AmdSevIoMmu.c | 14 |
1 files changed, 7 insertions, 7 deletions
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);
}
|