commit | 6960f1be2841d500df935280d27645bd7553c2a7 | [log] [tgz] |
---|---|---|
author | Philip Tricca <philip.b.tricca@intel.com> | Wed Mar 16 17:09:50 2016 -0700 |
committer | Philip Tricca <philip.b.tricca@intel.com> | Wed Mar 16 17:09:50 2016 -0700 |
tree | 9f72387d3599c00c865a6718fb39e9bbf29b3745 | |
parent | ca70f4bafb6c93d594a8a4292ce3b66698aa91ce [diff] |
debug: Remove global variable rmDebugPrefix. This global variable seemed to act like an escape hatch overriding the flag passed to the debug function. As someone coming along and trying to pick up this code I found it confusing when debug function refused to print a prefix even though I had asked it to. Not hard to figure out but global flags like this have the potential to cause unexpected behavior. IMHO it's better to simplify the code and remove this. To compensate for the loss of the rmDebugPrefix flag in the DebugPrintBuffer function I've added another parameter for callers to pass a printf_type flag to obtain the same behavior as when the rmDebugPrefix flag was set. Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
This stack consists of the following layers from top to bottom:
Since the FAPI and ESAPI haven't been implemented yet, this repository only contains the SAPI and layers below it, plus a test application for exercising the SAPI.
The test application, tpmclient, tests many of the commands against the TPM 2.0 simulator. The tpmclient application can be altered and used as a sandbox to test and develop any TPM 2.0 command sequences, and provides an excellent development and learning vehicle.
TPM 2.0 specifications can be found at Trusted Computing Group.