Fix: sink.text.pretty: print_discarded_elements_msg(): add missing space
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 3 Jun 2019 19:48:16 +0000 (15:48 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 6 Jun 2019 21:19:12 +0000 (17:19 -0400)
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 <eeppeliteloop@gmail.com>
Change-Id: I3f93f96479b2249c3e16f68e53533c48cf02a679
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1367
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins
plugins/text/pretty/print.c

index bdc1eb9801b5c0e8d1341d7f173ee721d2ebd618..fed8ca8c1d8aeea86a48e8a5778a63cf65a05f17 100644 (file)
@@ -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);
This page took 0.025285 seconds and 4 git commands to generate.