mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
c7ef2ed274
commit
60aa3a0e73
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue