aboutsummaryrefslogtreecommitdiff
path: root/hw/tpm
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2017-10-11 15:46:14 -0400
committerStefan Berger <stefanb@linux.vnet.ibm.com>2017-10-25 01:05:53 -0400
commit298d8b81d45d2297f88d93604bd5eebfd653d6cf (patch)
treeb0cfdaba14b884222e1474d3e65bc26ad3fe171b /hw/tpm
parent2f0a11533352e40b222a250d1d0e5f58df86e22b (diff)
tpm: print buffers received from TPM when debugging
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'hw/tpm')
-rw-r--r--hw/tpm/tpm_tis.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
index 8c5cac5fa5..7402528b25 100644
--- a/hw/tpm/tpm_tis.c
+++ b/hw/tpm/tpm_tis.c
@@ -422,6 +422,8 @@ static void tpm_tis_receive_bh(void *opaque)
s->loc[locty].r_offset = 0;
s->loc[locty].w_offset = 0;
+ tpm_tis_show_buffer(&s->loc[locty].r_buffer, "tpm_tis: From TPM");
+
if (TPM_TIS_IS_VALID_LOCTY(s->next_locty)) {
tpm_tis_abort(s, locty);
}