Re: [Qemu-devel] [RFC PATCH 1/4] tpm: print buffers received from TPM when debugging

2017-10-12 Thread Marc-André Lureau
On Wed, Oct 11, 2017 at 11:37 PM, Stefan Berger
 wrote:
> Signed-off-by: Stefan Berger 

Reviewed-by: Marc-André Lureau 


> ---
>  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(>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
>



-- 
Marc-André Lureau



[Qemu-devel] [RFC PATCH 1/4] tpm: print buffers received from TPM when debugging

2017-10-11 Thread Stefan Berger
Signed-off-by: Stefan Berger 
---
 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(>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