]> git.ipfire.org Git - thirdparty/qemu.git/commit
tpm_emulator: Translate TPM error codes to strings
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Thu, 25 Jul 2019 03:36:56 +0000 (23:36 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 1 Oct 2019 21:58:28 +0000 (16:58 -0500)
commit6210ff6aa2ba332f1539d30f80a1f5aeffb3a3f8
tree9ef2d2b8b74131270144f64c973dcd037355397a
parent0647727e4754d291d57a598cf3d0fa5b53cd5d41
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