tpm_emulator: Translate TPM error codes to strings
commit7e095e84ba0b7c0a1ac45bc6824dace2fd352e56
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 25 Jul 2019 03:36:56 +0000 (24 23:36 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 25 Jul 2019 15:37:10 +0000 (25 11:37 -0400)
tree7cb8ac307e1215748004177231f77cae40e41fc4
parentbcfd16fe26d6bb6eabfd2dfb46b9fda59d5493db
tpm_emulator: Translate TPM error codes to strings

Implement a function to translate TPM error codes to strings so that
at least the most common error codes can be translated to human
readable strings.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/tpm/tpm_emulator.c
hw/tpm/tpm_int.h