]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c
SecurityPkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()
[mirror_edk2.git] / SecurityPkg / Library / Tpm2DeviceLibDTpm / Tpm2Tis.c
index e3bef8dfe491dbc7e9a32595a462d6ecaff36ae7..a3c84d8ab491ebb6487cecbc223080f8c61b7d23 100644 (file)
@@ -218,7 +218,7 @@ Tpm2TisTpmCommand (
   UINT16                            Data16;\r
   UINT32                            Data32;\r
 \r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     UINTN  DebugSize;\r
 \r
     DEBUG ((DEBUG_VERBOSE, "Tpm2TisTpmCommand Send - "));\r
@@ -237,7 +237,7 @@ Tpm2TisTpmCommand (
       }\r
     }\r
     DEBUG ((DEBUG_VERBOSE, "\n"));\r
-  );\r
+  DEBUG_CODE_END ();\r
   TpmOutSize = 0;\r
 \r
   Status = TisPcPrepareCommand (TisReg);\r
@@ -332,13 +332,13 @@ Tpm2TisTpmCommand (
       if (Index == sizeof (TPM2_RESPONSE_HEADER)) break;\r
     }\r
   }\r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     DEBUG ((DEBUG_VERBOSE, "Tpm2TisTpmCommand ReceiveHeader - "));\r
     for (Index = 0; Index < sizeof (TPM2_RESPONSE_HEADER); Index++) {\r
       DEBUG ((DEBUG_VERBOSE, "%02x ", BufferOut[Index]));\r
     }\r
     DEBUG ((DEBUG_VERBOSE, "\n"));\r
-  );\r
+  DEBUG_CODE_END ();\r
   //\r
   // Check the response data header (tag,parasize and returncode )\r
   //\r
@@ -376,13 +376,13 @@ Tpm2TisTpmCommand (
     }\r
   }\r
 Exit:\r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     DEBUG ((DEBUG_VERBOSE, "Tpm2TisTpmCommand Receive - "));\r
     for (Index = 0; Index < TpmOutSize; Index++) {\r
       DEBUG ((DEBUG_VERBOSE, "%02x ", BufferOut[Index]));\r
     }\r
     DEBUG ((DEBUG_VERBOSE, "\n"));\r
-  );\r
+  DEBUG_CODE_END ();\r
   MmioWrite8((UINTN)&TisReg->Status, TIS_PC_STS_READY);\r
   return Status;\r
 }\r