mirror of https://github.com/acidanthera/audk.git
OvmfPkg/IoMmuDxe: IoMmuFreeBuffer(): clean up DEBUG message
Log all relevant IN parameters on entry. (There are only IN parameters.) Beautify the format string. Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Brijesh Singh <brijesh.singh@amd.com> Tested-by: Brijesh Singh <brijesh.singh@amd.com>
This commit is contained in:
parent
80ddd336da
commit
1afbb85f87
|
@ -611,6 +611,14 @@ IoMmuFreeBuffer (
|
|||
UINTN CommonBufferPages;
|
||||
COMMON_BUFFER_HEADER *CommonBufferHeader;
|
||||
|
||||
DEBUG ((
|
||||
DEBUG_VERBOSE,
|
||||
"%a: Host=0x%p Pages=0x%Lx\n",
|
||||
__FUNCTION__,
|
||||
HostAddress,
|
||||
(UINT64)Pages
|
||||
));
|
||||
|
||||
CommonBufferPages = Pages + 1;
|
||||
CommonBufferHeader = (COMMON_BUFFER_HEADER *)(
|
||||
(UINTN)HostAddress - EFI_PAGE_SIZE
|
||||
|
@ -630,14 +638,6 @@ IoMmuFreeBuffer (
|
|||
//
|
||||
FreePages (CommonBufferHeader->StashBuffer, Pages);
|
||||
|
||||
DEBUG ((
|
||||
DEBUG_VERBOSE,
|
||||
"%a Address 0x%Lx Pages 0x%Lx\n",
|
||||
__FUNCTION__,
|
||||
(UINT64)(UINTN)HostAddress,
|
||||
(UINT64)Pages
|
||||
));
|
||||
|
||||
//
|
||||
// Release the common buffer itself. Unmap() has re-encrypted it in-place, so
|
||||
// no need to zero it.
|
||||
|
|
Loading…
Reference in New Issue