From 32cef6e598347f7e15b6dfdfc840b30e556f0919 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Mon, 10 Feb 2014 15:17:39 -0500 Subject: [PATCH] nicer output of the time spent in a syscall Signed-off-by: Julien Desfossez --- src/lttngtop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1