aboutsummaryrefslogtreecommitdiff
path: root/backends/tpm/trace-events
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2024-06-06 12:39:39 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2024-06-10 13:05:27 -0400
commit7682ecd48d6c177667e02a64b4287d7f31c27bd8 (patch)
tree5e796c6060aef35b38a0d6a8467552cc4d254366 /backends/tpm/trace-events
parent0e2b9edfb6126fd9ce235a1b34ba20bbeb2547ae (diff)
downloadqemu-7682ecd48d6c177667e02a64b4287d7f31c27bd8.zip
qemu-7682ecd48d6c177667e02a64b4287d7f31c27bd8.tar.gz
qemu-7682ecd48d6c177667e02a64b4287d7f31c27bd8.tar.bz2
backends/tpm: Remove newline character in trace event
Split the 'tpm_util_show_buffer' event in two to avoid using a newline character. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Acked-by: Mads Ynddal <mads@ynddal.dk> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Message-id: 20240606103943.79116-2-philmd@linaro.org Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'backends/tpm/trace-events')
-rw-r--r--backends/tpm/trace-events3
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/tpm/trace-events b/backends/tpm/trace-events
index 1ecef42..cb5cfa6 100644
--- a/backends/tpm/trace-events
+++ b/backends/tpm/trace-events
@@ -10,7 +10,8 @@ tpm_util_get_buffer_size_len(uint32_t len, size_t expected) "tpm_resp->len = %u,
tpm_util_get_buffer_size_hdr_len2(uint32_t len, size_t expected) "tpm2_resp->hdr.len = %u, expected = %zu"
tpm_util_get_buffer_size_len2(uint32_t len, size_t expected) "tpm2_resp->len = %u, expected = %zu"
tpm_util_get_buffer_size(size_t len) "buffersize of device: %zu"
-tpm_util_show_buffer(const char *direction, size_t len, const char *buf) "direction: %s len: %zu\n%s"
+tpm_util_show_buffer_header(const char *direction, size_t len) "direction: %s len: %zu"
+tpm_util_show_buffer_content(const char *buf) "%s"
# tpm_emulator.c
tpm_emulator_set_locality(uint8_t locty) "setting locality to %d"