]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/HashLibTpm2/HashLibTpm2.c
SecurityPkg: Reduce verbosity of TPM DEBUG messages
[mirror_edk2.git] / SecurityPkg / Library / HashLibTpm2 / HashLibTpm2.c
index 379f2f7e7e63c63b3e28a698eab65e5c875c8389..075db4aa3702173e4a440effc2c7e56a22ef098e 100644 (file)
@@ -2,6 +2,7 @@
   Ihis library uses TPM2 device to calculation hash.\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
@@ -242,7 +243,7 @@ HashAndExtend (
   TPM2B_EVENT        EventData;\r
   TPM2B_DIGEST       Result;\r
 \r
-  DEBUG((EFI_D_INFO, "\n HashAndExtend Entry \n"));\r
+  DEBUG((EFI_D_VERBOSE, "\n HashAndExtend Entry \n"));\r
 \r
   SequenceHandle = 0xFFFFFFFF; // Know bad value\r
 \r
@@ -262,7 +263,7 @@ HashAndExtend (
   if (EFI_ERROR(Status)) {\r
     return EFI_DEVICE_ERROR;\r
   }\r
-  DEBUG((EFI_D_INFO, "\n Tpm2HashSequenceStart Success \n"));\r
+  DEBUG((EFI_D_VERBOSE, "\n Tpm2HashSequenceStart Success \n"));\r
 \r
   Buffer = (UINT8 *)(UINTN)DataToHash;\r
   for (HashLen = DataToHashLen; HashLen > sizeof(HashBuffer.buffer); HashLen -= sizeof(HashBuffer.buffer)) {\r
@@ -276,7 +277,7 @@ HashAndExtend (
       return EFI_DEVICE_ERROR;\r
     }\r
   }\r
-  DEBUG((EFI_D_INFO, "\n Tpm2SequenceUpdate Success \n"));\r
+  DEBUG((EFI_D_VERBOSE, "\n Tpm2SequenceUpdate Success \n"));\r
 \r
   HashBuffer.size = (UINT16)HashLen;\r
   CopyMem(HashBuffer.buffer, Buffer, (UINTN)HashLen);\r
@@ -294,7 +295,7 @@ HashAndExtend (
     if (EFI_ERROR(Status)) {\r
       return EFI_DEVICE_ERROR;\r
     }\r
-    DEBUG((EFI_D_INFO, "\n Tpm2EventSequenceComplete Success \n"));\r
+    DEBUG((EFI_D_VERBOSE, "\n Tpm2EventSequenceComplete Success \n"));\r
   } else {\r
     Status = Tpm2SequenceComplete (\r
                SequenceHandle,\r
@@ -304,7 +305,7 @@ HashAndExtend (
     if (EFI_ERROR(Status)) {\r
       return EFI_DEVICE_ERROR;\r
     }\r
-    DEBUG((EFI_D_INFO, "\n Tpm2SequenceComplete Success \n"));\r
+    DEBUG((EFI_D_VERBOSE, "\n Tpm2SequenceComplete Success \n"));\r
 \r
     DigestList->count = 1;\r
     DigestList->digests[0].hashAlg = AlgoId;\r
@@ -316,7 +317,7 @@ HashAndExtend (
     if (EFI_ERROR(Status)) {\r
       return EFI_DEVICE_ERROR;\r
     }\r
-    DEBUG((EFI_D_INFO, "\n Tpm2PcrExtend Success \n"));\r
+    DEBUG((EFI_D_VERBOSE, "\n Tpm2PcrExtend Success \n"));\r
   }\r
 \r
   return EFI_SUCCESS;\r