From 676576f34793ce7e00b6335445f600e39f84295e Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 16 Dec 2021 13:31:07 +0100 Subject: [PATCH] Simplify dump format --- dump.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/dump.c b/dump.c index f28201b..697c078 100644 --- a/dump.c +++ b/dump.c @@ -55,7 +55,6 @@ char *tracedir; static void emit(struct ovni_stream *stream, struct ovni_ev *ev) { - int64_t delta; uint64_t clock; int i, payloadsize; @@ -64,21 +63,21 @@ emit(struct ovni_stream *stream, struct ovni_ev *ev) clock = ovni_ev_get_clock(ev); - delta = clock - stream->lastclock; - - printf("%s.%d.%d %c %c %c % 20ld % 15ld ", + printf("%s.%d.%d %ld %c%c%c", stream->loom->hostname, stream->proc->pid, stream->thread->tid, + clock, ev->header.model, ev->header.category, - ev->header.value, - clock, delta); + ev->header.value); payloadsize = ovni_payload_size(ev); - for(i=0; i 0) { - printf("%02x ", ev->payload.u8[i]); + printf(" "); + for(i=0; ipayload.u8[i]); } printf("\n");