aboutsummaryrefslogtreecommitdiff
path: root/simpletrace.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-10-20 16:41:36 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-10-20 16:41:36 +0000
commita12c668f0a44bbbb7b9bc2b852c62f6864c8b92d (patch)
treeae68625fb20b6b631f683c04677d9545988c7a72 /simpletrace.c
parentcf85cf8e972f3ad79f203be4edb7968d6e052293 (diff)
downloadqemu-a12c668f0a44bbbb7b9bc2b852c62f6864c8b92d.zip
qemu-a12c668f0a44bbbb7b9bc2b852c62f6864c8b92d.tar.gz
qemu-a12c668f0a44bbbb7b9bc2b852c62f6864c8b92d.tar.bz2
trace: improve info trace output
Use PRI*64 to print full 64 bit data even on ILP32 hosts. Print also sixth tracepoint parameter. Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Cc: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'simpletrace.c')
-rw-r--r--simpletrace.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/simpletrace.c b/simpletrace.c
index deb1e07..b488d51 100644
--- a/simpletrace.c
+++ b/simpletrace.c
@@ -214,9 +214,11 @@ void st_print_trace(FILE *stream, int (*stream_printf)(FILE *stream, const char
unsigned int i;
for (i = 0; i < trace_idx; i++) {
- stream_printf(stream, "Event %lu : %lx %lx %lx %lx %lx\n",
+ stream_printf(stream, "Event %" PRIu64 " : %" PRIx64 " %" PRIx64
+ " %" PRIx64 " %" PRIx64 " %" PRIx64 " %" PRIx64 "\n",
trace_buf[i].event, trace_buf[i].x1, trace_buf[i].x2,
- trace_buf[i].x3, trace_buf[i].x4, trace_buf[i].x5);
+ trace_buf[i].x3, trace_buf[i].x4, trace_buf[i].x5,
+ trace_buf[i].x6);
}
}