]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/IoMmuDxe/AmdSevIoMmu.c
OvmfPkg/IoMmuDxe: IoMmuUnmap(): clean up DEBUG message
[mirror_edk2.git] / OvmfPkg / IoMmuDxe / AmdSevIoMmu.c
index 59cee95c0e219051efb48c3c6c1cb687c1f87dbc..a153d250d54562e1acd4cfda22e060f1177fad11 100644 (file)
@@ -348,6 +348,8 @@ IoMmuUnmap (
   COMMON_BUFFER_HEADER     *CommonBufferHeader;\r
   VOID                     *EncryptionTarget;\r
 \r
+  DEBUG ((DEBUG_VERBOSE, "%a: Mapping=0x%p\n", __FUNCTION__, Mapping));\r
+\r
   if (Mapping == NULL) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
@@ -399,16 +401,6 @@ IoMmuUnmap (
     break;\r
   }\r
 \r
-  DEBUG ((\r
-    DEBUG_VERBOSE,\r
-    "%a PlainText 0x%Lx Crypted 0x%Lx Pages 0x%Lx Bytes 0x%Lx\n",\r
-    __FUNCTION__,\r
-    MapInfo->PlainTextAddress,\r
-    MapInfo->CryptedAddress,\r
-    (UINT64)MapInfo->NumberOfPages,\r
-    (UINT64)MapInfo->NumberOfBytes\r
-    ));\r
-\r
   //\r
   // Restore the memory encryption mask on the area we used to hold the\r
   // plaintext.\r