From 1afbb85f8736b63bc32f5827c3cb7b2e583114eb Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 30 Aug 2017 14:49:17 +0200 Subject: [PATCH] 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 Cc: Jordan Justen Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Reviewed-by: Brijesh Singh Tested-by: Brijesh Singh --- OvmfPkg/IoMmuDxe/AmdSevIoMmu.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c b/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c index 0ab7043498..bc57de5b57 100644 --- a/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c +++ b/OvmfPkg/IoMmuDxe/AmdSevIoMmu.c @@ -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. -- 2.39.2