]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c
SecurityPkg: Reduce verbosity of TPM DEBUG messages
[mirror_edk2.git] / SecurityPkg / Library / Tpm2DeviceLibDTpm / Tpm2Tis.c
index a1862796a5379836055e1085297348ee84263926..b7dd57df8dd0ca121755c34ec73711c907e0bf17 100644 (file)
@@ -2,6 +2,7 @@
   TIS (TPM Interface Specification) functions used by dTPM2.0 library.\r
   \r
 Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>\r
+(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
 This program and the accompanying materials \r
 are licensed and made available under the terms and conditions of the BSD License \r
 which accompanies this distribution.  The full text of the license may be found at \r
@@ -387,22 +388,22 @@ TisTpmCommand (
   DEBUG_CODE (\r
     UINTN  DebugSize;\r
 \r
-    DEBUG ((EFI_D_INFO, "Tpm2TisTpmCommand Send - "));\r
+    DEBUG ((EFI_D_VERBOSE, "Tpm2TisTpmCommand Send - "));\r
     if (SizeIn > 0x100) {\r
       DebugSize = 0x40;\r
     } else {\r
       DebugSize = SizeIn;\r
     }\r
     for (Index = 0; Index < DebugSize; Index++) {\r
-      DEBUG ((EFI_D_INFO, "%02x ", BufferIn[Index]));\r
+      DEBUG ((EFI_D_VERBOSE, "%02x ", BufferIn[Index]));\r
     }\r
     if (DebugSize != SizeIn) {\r
-      DEBUG ((EFI_D_INFO, "...... "));\r
+      DEBUG ((EFI_D_VERBOSE, "...... "));\r
       for (Index = SizeIn - 0x20; Index < SizeIn; Index++) {\r
-        DEBUG ((EFI_D_INFO, "%02x ", BufferIn[Index]));\r
+        DEBUG ((EFI_D_VERBOSE, "%02x ", BufferIn[Index]));\r
       }\r
     }\r
-    DEBUG ((EFI_D_INFO, "\n"));\r
+    DEBUG ((EFI_D_VERBOSE, "\n"));\r
   );\r
   TpmOutSize = 0;\r
 \r
@@ -477,11 +478,11 @@ TisTpmCommand (
     }\r
   }\r
   DEBUG_CODE (\r
-    DEBUG ((EFI_D_INFO, "TisTpmCommand ReceiveHeader - "));\r
+    DEBUG ((EFI_D_VERBOSE, "TisTpmCommand ReceiveHeader - "));\r
     for (Index = 0; Index < sizeof (TPM2_RESPONSE_HEADER); Index++) {\r
-      DEBUG ((EFI_D_INFO, "%02x ", BufferOut[Index]));\r
+      DEBUG ((EFI_D_VERBOSE, "%02x ", BufferOut[Index]));\r
     }\r
-    DEBUG ((EFI_D_INFO, "\n"));\r
+    DEBUG ((EFI_D_VERBOSE, "\n"));\r
   );\r
   //\r
   // Check the reponse data header (tag,parasize and returncode )\r
@@ -521,11 +522,11 @@ TisTpmCommand (
   }\r
 Exit:\r
   DEBUG_CODE (\r
-    DEBUG ((EFI_D_INFO, "Tpm2TisTpmCommand Receive - "));\r
+    DEBUG ((EFI_D_VERBOSE, "Tpm2TisTpmCommand Receive - "));\r
     for (Index = 0; Index < TpmOutSize; Index++) {\r
-      DEBUG ((EFI_D_INFO, "%02x ", BufferOut[Index]));\r
+      DEBUG ((EFI_D_VERBOSE, "%02x ", BufferOut[Index]));\r
     }\r
-    DEBUG ((EFI_D_INFO, "\n"));\r
+    DEBUG ((EFI_D_VERBOSE, "\n"));\r
   );\r
   MmioWrite8((UINTN)&TisReg->Status, TIS_PC_STS_READY);\r
   return Status;\r