]> git.proxmox.com Git - mirror_qemu.git/commit
tpm_tis: convert tpm_tis_show_buffer() to use trace event
authorLiam Merwick <liam.merwick@oracle.com>
Fri, 15 Feb 2019 13:35:19 +0000 (13:35 +0000)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Sun, 24 Feb 2019 19:46:14 +0000 (14:46 -0500)
commitcd38cc519b60bbe5dd8d85f6aaa72b2d7902930b
treed2f280458b2d2173fff480d7944bffe5af8cd6ad
parent37b55d67c0f001b20b7831db3f9f24f1d453e1de
tpm_tis: convert tpm_tis_show_buffer() to use trace event

cppcheck reports:

[hw/tpm/tpm_tis.c:113]: (warning) %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'

Rather than just converting the format specifier to use '%u", the
tpm_tis_show_buffer() function is converted to use trace points and
the two debug callers use the trace event infrastructure so that it's
available in production cases also and not just when DEBUG_TIS is enabled.

Signed-off-by: Liam Merwick <liam.merwick@oracle.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
hw/tpm/tpm_tis.c
hw/tpm/trace-events