tpm: Tidy up logging in tpm-common.c