X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Flttngtop.c;h=f85d11e1d73653954665458ae0b9b28e6e80c80c;hp=33f098a977c360b4f9d21efdcd85c33d2efcf59a;hb=4251cc67f883927c96fe0d13d14101b8ed01ab43;hpb=010f485a6a4a9901009a8b8cea7d1e80fe6489b0 diff --git a/src/lttngtop.c b/src/lttngtop.c index 33f098a..f85d11e 100644 --- a/src/lttngtop.c +++ b/src/lttngtop.c @@ -270,22 +270,13 @@ enum bt_cb_ret print_timestamp(struct bt_ctf_event *call_data, void *private_dat delta = timestamp - prev_ts; prev_ts = timestamp; - if (hostname) { - printf("%02d:%02d:%02d.%09" PRIu64 " (+%" PRIu64 ".%09" PRIu64 ") (%s) " - "(cpu %d) [%s (%d/%d)] %s (", - start.tm_hour, start.tm_min, start.tm_sec, - ts_nsec_start, delta / NSEC_PER_SEC, - delta % NSEC_PER_SEC, hostname, cpu_id, - procname, pid, tid, - bt_ctf_event_name(call_data)); - } else { - printf("%02d:%02d:%02d.%09" PRIu64 " (+%" PRIu64 ".%09" PRIu64 ") " - "(cpu %d) [%s (%d/%d)] %s (", - start.tm_hour, start.tm_min, start.tm_sec, - ts_nsec_start, delta / NSEC_PER_SEC, - delta % NSEC_PER_SEC, cpu_id, procname, pid, - tid, bt_ctf_event_name(call_data)); - } + printf("%02d:%02d:%02d.%09" PRIu64 " (+%" PRIu64 ".%09" PRIu64 ") %s%s" + "(cpu %d) [%s (%d/%d)] %s (", + start.tm_hour, start.tm_min, start.tm_sec, + ts_nsec_start, delta / NSEC_PER_SEC, + delta % NSEC_PER_SEC, (hostname) ? hostname : "", + (hostname) ? " ": "", cpu_id, procname, pid, tid, + bt_ctf_event_name(call_data)); print_fields(call_data); printf(")\n");