tpm_emulator: Translate TPM error codes to strings
commitc00635946fa028e9c6a7d0b6c8c2c0b9f4867ce3
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 25 Jul 2019 03:36:56 +0000 (24 23:36 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 30 Jul 2019 16:40:43 +0000 (30 11:40 -0500)
treee49f02b35c931d9becabe333bd472666df5753c8
parent51ce84e119541e7a3cf8922c9f87de7787b8de91
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>
(cherry picked from commit 7e095e84ba0b7c0a1ac45bc6824dace2fd352e56)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/tpm/tpm_emulator.c
hw/tpm/tpm_int.h