From: Julien Desfossez Date: Mon, 10 Feb 2014 20:17:39 +0000 (-0500) Subject: nicer output of the time spent in a syscall X-Git-Tag: v0.3~43 X-Git-Url: http://git.lttng.org/?p=lttngtop.git;a=commitdiff_plain;h=32cef6e598347f7e15b6dfdfc840b30e556f0919 nicer output of the time spent in a syscall Signed-off-by: Julien Desfossez --- diff --git a/src/lttngtop.c b/src/lttngtop.c index 4649348..03d79d4 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -331,7 +331,7 @@ enum bt_cb_ret textdump(struct bt_ctf_event *call_data, void *private_data) syscall_ret = bt_ctf_get_int64(bt_ctf_get_field(call_data, scope, "_ret")); - printf("= %" PRId64 " (+%" PRIu64 ".%09" PRIu64 ")\n", + printf("= %" PRId64 " (%" PRIu64 ".%09" PRIu64 "s)\n", syscall_ret, delta / NSEC_PER_SEC, delta % NSEC_PER_SEC); last_syscall = NULL;