]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12Tis.c
SecurityPkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()
[mirror_edk2.git] / SecurityPkg / Library / Tpm12DeviceLibDTpm / Tpm12Tis.c
index b8218f122de50ca3faf22b1c1f4e7bdb012f8488..d9e1ce86ee72eab910023e0342359fcb1d695dca 100644 (file)
@@ -263,7 +263,7 @@ Tpm12TisTpmCommand (
   UINT32                            Data32;\r
   UINT16                            RspTag;\r
 \r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     UINTN  DebugSize;\r
 \r
     DEBUG ((DEBUG_VERBOSE, "Tpm12TisTpmCommand Send - "));\r
@@ -282,7 +282,7 @@ Tpm12TisTpmCommand (
       }\r
     }\r
     DEBUG ((DEBUG_VERBOSE, "\n"));\r
-  );\r
+  DEBUG_CODE_END ();\r
   TpmOutSize = 0;\r
 \r
   Status = Tpm12TisPcPrepareCommand (TisReg);\r
@@ -351,13 +351,13 @@ Tpm12TisTpmCommand (
       if (Index == sizeof (TPM_RSP_COMMAND_HDR)) break;\r
     }\r
   }\r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     DEBUG ((DEBUG_VERBOSE, "Tpm12TisTpmCommand ReceiveHeader - "));\r
     for (Index = 0; Index < sizeof (TPM_RSP_COMMAND_HDR); 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
@@ -395,13 +395,13 @@ Tpm12TisTpmCommand (
     }\r
   }\r
 Exit:\r
-  DEBUG_CODE (\r
+  DEBUG_CODE_BEGIN ();\r
     DEBUG ((DEBUG_VERBOSE, "Tpm12TisTpmCommand 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