X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=plugins%2Ftext%2Fpretty%2Fprint.c;h=7cf9434d969fb550b36f66536453f7c511d06835;hp=e698f4bd6671e87e6cec52bc115e25d42068e03a;hb=18adbd1926ea9251b1c6dcf7fe9da1d6d4dca636;hpb=6032563a590e26e140f2cb7bea4e31395ec41963 diff --git a/plugins/text/pretty/print.c b/plugins/text/pretty/print.c index e698f4bd..7cf9434d 100644 --- a/plugins/text/pretty/print.c +++ b/plugins/text/pretty/print.c @@ -191,9 +191,10 @@ void print_timestamp_wall(struct pretty_component *pretty, struct tm tm; time_t time_s = (time_t) ts_sec_abs; - if (is_negative) { + if (is_negative && !pretty->negative_timestamp_warning_done) { // TODO: log instead fprintf(stderr, "[warning] Fallback to [sec.ns] to print negative time value. Use --clock-seconds.\n"); + pretty->negative_timestamp_warning_done = true; goto seconds; }