tpm: print buffers received from TPM when debugging
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 11 Oct 2017 19:46:14 +0000 (15:46 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 25 Oct 2017 05:05:53 +0000 (01:05 -0400)
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
hw/tpm/tpm_tis.c

index 8c5cac5fa5ec670d6bcbe135dcfe60f5ec36859a..7402528b256ce69d6125fa8082f985b351c7a734 100644 (file)
@@ -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);
     }