summaryrefslogtreecommitdiff
path: root/SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c
diff options
context:
space:
mode:
authorSamer El-Haj-Mahmoud <samer.el-haj-mahmoud@hpe.com>2015-09-16 00:53:28 +0000
committerjyao1 <jyao1@Edk2>2015-09-16 00:53:28 +0000
commit6aaac3838e5b408b67178d350d3fcc41e4bf3162 (patch)
treeccf2519b01bf6e88d909a6dcb928c03e26e9a704 /SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c
parent7d9340a3f082d2af4e69058e3083d08084d6c330 (diff)
downloadedk2-6aaac3838e5b408b67178d350d3fcc41e4bf3162.zip
edk2-6aaac3838e5b408b67178d350d3fcc41e4bf3162.tar.gz
edk2-6aaac3838e5b408b67178d350d3fcc41e4bf3162.tar.bz2
SecurityPkg: Reduce verbosity of TPM DEBUG messages
Some of the TPM/TPM2 DEBUG messages are at EFI_D_INFO level, even though they are simply tracing functions that run on every boot even if there is no TPM installed. Changed verbosity to EFI_D_VERBOSE. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Samer El-Haj-Mahmoud" <samer.el-haj-mahmoud@hpe.com> Reviewed-by: "Jiewen Yao" <Jiewen.Yao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18476 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c')
-rw-r--r--SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c b/SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c
index a186279..b7dd57d 100644
--- a/SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c
+++ b/SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2Tis.c
@@ -2,6 +2,7 @@
TIS (TPM Interface Specification) functions used by dTPM2.0 library.
Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.<BR>
+(C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -387,22 +388,22 @@ TisTpmCommand (
DEBUG_CODE (
UINTN DebugSize;
- DEBUG ((EFI_D_INFO, "Tpm2TisTpmCommand Send - "));
+ DEBUG ((EFI_D_VERBOSE, "Tpm2TisTpmCommand Send - "));
if (SizeIn > 0x100) {
DebugSize = 0x40;
} else {
DebugSize = SizeIn;
}
for (Index = 0; Index < DebugSize; Index++) {
- DEBUG ((EFI_D_INFO, "%02x ", BufferIn[Index]));
+ DEBUG ((EFI_D_VERBOSE, "%02x ", BufferIn[Index]));
}
if (DebugSize != SizeIn) {
- DEBUG ((EFI_D_INFO, "...... "));
+ DEBUG ((EFI_D_VERBOSE, "...... "));
for (Index = SizeIn - 0x20; Index < SizeIn; Index++) {
- DEBUG ((EFI_D_INFO, "%02x ", BufferIn[Index]));
+ DEBUG ((EFI_D_VERBOSE, "%02x ", BufferIn[Index]));
}
}
- DEBUG ((EFI_D_INFO, "\n"));
+ DEBUG ((EFI_D_VERBOSE, "\n"));
);
TpmOutSize = 0;
@@ -477,11 +478,11 @@ TisTpmCommand (
}
}
DEBUG_CODE (
- DEBUG ((EFI_D_INFO, "TisTpmCommand ReceiveHeader - "));
+ DEBUG ((EFI_D_VERBOSE, "TisTpmCommand ReceiveHeader - "));
for (Index = 0; Index < sizeof (TPM2_RESPONSE_HEADER); Index++) {
- DEBUG ((EFI_D_INFO, "%02x ", BufferOut[Index]));
+ DEBUG ((EFI_D_VERBOSE, "%02x ", BufferOut[Index]));
}
- DEBUG ((EFI_D_INFO, "\n"));
+ DEBUG ((EFI_D_VERBOSE, "\n"));
);
//
// Check the reponse data header (tag,parasize and returncode )
@@ -521,11 +522,11 @@ TisTpmCommand (
}
Exit:
DEBUG_CODE (
- DEBUG ((EFI_D_INFO, "Tpm2TisTpmCommand Receive - "));
+ DEBUG ((EFI_D_VERBOSE, "Tpm2TisTpmCommand Receive - "));
for (Index = 0; Index < TpmOutSize; Index++) {
- DEBUG ((EFI_D_INFO, "%02x ", BufferOut[Index]));
+ DEBUG ((EFI_D_VERBOSE, "%02x ", BufferOut[Index]));
}
- DEBUG ((EFI_D_INFO, "\n"));
+ DEBUG ((EFI_D_VERBOSE, "\n"));
);
MmioWrite8((UINTN)&TisReg->Status, TIS_PC_STS_READY);
return Status;