From 3f2f6b21fef5c6b6341419338a024c7ba6acc65a Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Mon, 3 Jun 2019 15:48:16 -0400 Subject: [PATCH] Fix: sink.text.pretty: print_discarded_elements_msg(): add missing space Before: WARNING: Tracer discarded 17 events(unknown time range) in trace "ev-disc-no-ts-begin-end" (no UUID) within stream "/path/to/ev-disc-no-ts-begin-end/stream" (stream class ID: 0, stream ID: 0). After: WARNING: Tracer discarded 17 events (unknown time range) in trace "ev-disc-no-ts-begin-end" (no UUID) within stream "/path/to/ev-disc-no-ts-begin-end/stream" (stream class ID: 0, stream ID: 0). Signed-off-by: Philippe Proulx Change-Id: I3f93f96479b2249c3e16f68e53533c48cf02a679 Reviewed-on: https://review.lttng.org/c/babeltrace/+/1367 Reviewed-by: Simon Marchi Tested-by: jenkins --- plugins/text/pretty/print.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/text/pretty/print.c b/plugins/text/pretty/print.c index bdc1eb98..fed8ca8c 100644 --- a/plugins/text/pretty/print.c +++ b/plugins/text/pretty/print.c @@ -1258,8 +1258,10 @@ int print_discarded_elements_msg(struct pretty_component *pretty, count == 1 ? "" : "s"); } + g_string_append_c(pretty->string, ' '); + if (begin_clock_snapshot && end_clock_snapshot) { - g_string_append(pretty->string, " between ["); + g_string_append(pretty->string, "between ["); print_timestamp_wall(pretty, begin_clock_snapshot, false); g_string_append(pretty->string, "] and ["); print_timestamp_wall(pretty, end_clock_snapshot, false); -- 2.34.1