From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48996 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7OU3-0004rg-BP for qemu-devel@nongnu.org; Sun, 17 Oct 2010 04:20:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7OFs-0007Fh-5d for qemu-devel@nongnu.org; Sun, 17 Oct 2010 04:06:09 -0400 Received: from mail-qy0-f173.google.com ([209.85.216.173]:61324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7OFs-0007FW-2T for qemu-devel@nongnu.org; Sun, 17 Oct 2010 04:06:08 -0400 Received: by qyk36 with SMTP id 36so2717223qyk.4 for ; Sun, 17 Oct 2010 01:06:07 -0700 (PDT) MIME-Version: 1.0 From: Blue Swirl Date: Sun, 17 Oct 2010 08:05:45 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: [Qemu-devel] [PATCH] trace: improve info trace output List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel , Stefan Hajnoczi Use PRI*64 to print full 64 bit data even on ILP32 hosts. Print also sixth tracepoint parameter. Cc: Stefan Hajnoczi Signed-off-by: Blue Swirl --- simpletrace.c | 6 ++++-- 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); } } -- 1.6.2.4