diff mbox

[RFC,1/4] tpm: print buffers received from TPM when debugging

Message ID 1507757851-12580-2-git-send-email-stefanb@linux.vnet.ibm.com (mailing list archive)
State New, archived
Headers show

Commit Message

Stefan Berger Oct. 11, 2017, 9:37 p.m. UTC
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
---
 hw/tpm/tpm_tis.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Marc-André Lureau Oct. 12, 2017, 2:54 p.m. UTC | #1
On Wed, Oct 11, 2017 at 11:37 PM, Stefan Berger
<stefanb@linux.vnet.ibm.com> wrote:
> Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>


> ---
>  hw/tpm/tpm_tis.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
> index d5118e7..9bf0bce 100644
> --- a/hw/tpm/tpm_tis.c
> +++ b/hw/tpm/tpm_tis.c
> @@ -373,6 +373,8 @@ static void tpm_tis_receive_bh(void *opaque)
>      tis->loc[locty].r_offset = 0;
>      tis->loc[locty].w_offset = 0;
>
> +    tpm_tis_show_buffer(&tis->loc[locty].r_buffer, "tpm_tis: From TPM");
> +
>      if (TPM_TIS_IS_VALID_LOCTY(tis->next_locty)) {
>          tpm_tis_abort(s, locty);
>      }
> --
> 2.5.5
>
diff mbox

Patch

diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c
index d5118e7..9bf0bce 100644
--- a/hw/tpm/tpm_tis.c
+++ b/hw/tpm/tpm_tis.c
@@ -373,6 +373,8 @@  static void tpm_tis_receive_bh(void *opaque)
     tis->loc[locty].r_offset = 0;
     tis->loc[locty].w_offset = 0;
 
+    tpm_tis_show_buffer(&tis->loc[locty].r_buffer, "tpm_tis: From TPM");
+
     if (TPM_TIS_IS_VALID_LOCTY(tis->next_locty)) {
         tpm_tis_abort(s, locty);
     }