]> git.proxmox.com Git - qemu.git/commitdiff
trace: improve info trace output
authorBlue Swirl <blauwirbel@gmail.com>
Wed, 20 Oct 2010 16:41:36 +0000 (16:41 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 20 Oct 2010 16:41:36 +0000 (16:41 +0000)
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>
simpletrace.c

index deb1e0742ecd1a35701ef461834330b4a22a3e08..b488d5176620f2fcda901fae7f455b7a675d15ea 100644 (file)
@@ -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);
     }
 }