]> git.proxmox.com Git - libtpms.git/commit
Implement API calls for enabling debug output
authorStefan Berger <stefanb@us.ibm.com>
Mon, 23 Jan 2017 19:57:22 +0000 (14:57 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Mon, 23 Jan 2017 23:53:31 +0000 (18:53 -0500)
commit7fb176bcc4eb7ed6c125a1494bd4a6e6d12a0630
tree10ca074f6142ec5df8117a142cc42f208e06941f
parenta0eaeb892162be6368f4f9e345fee2f43a572092
Implement API calls for enabling debug output

Add API calls TPMLIB_SetDebugFD(), TPMLIB_SetDebugLevel(),
TPMLIB_SetDebugPrefix().

Convert the internal printing of debugging strings to
correspond to the log level. Print the prefix in front
of every line.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
12 files changed:
include/libtpms/tpm_library.h
include/libtpms/tpm_library.h.in
man/man3/Makefile.am
man/man3/TPMLIB_SetDebugFD.3 [new file with mode: 0644]
man/man3/TPMLIB_SetDebugFD.pod [new file with mode: 0644]
man/man3/TPMLIB_SetDebugLevel.3 [new file with mode: 0644]
man/man3/TPMLIB_SetDebugPrefix.3 [new file with mode: 0644]
src/libtpms.syms
src/tpm12/tpm_debug.c
src/tpm12/tpm_debug.h
src/tpm_library.c
src/tpm_library_intern.h