From: Julien Desfossez Date: Fri, 3 Mar 2017 19:16:54 +0000 (-0500) Subject: fix: missing equal sign when printing events without colors X-Git-Tag: v2.0.0-pre1~404 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;ds=sidebyside;h=06e8da8b9321672c881e2a0e97582a4c9a31dac7;p=babeltrace.git fix: missing equal sign when printing events without colors Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau --- diff --git a/plugins/text/print.c b/plugins/text/print.c index 413d9a60..db6bae37 100644 --- a/plugins/text/print.c +++ b/plugins/text/print.c @@ -78,7 +78,7 @@ void print_name_equal(struct text_component *text, const char *name) if (text->use_colors) { fprintf(text->out, "%s%s%s = ", COLOR_NAME, name, COLOR_RST); } else { - fputs(name, text->out); + fprintf(text->out, "%s = ", name); } } @@ -89,7 +89,7 @@ void print_field_name_equal(struct text_component *text, const char *name) fprintf(text->out, "%s%s%s = ", COLOR_FIELD_NAME, name, COLOR_RST); } else { - fputs(name, text->out); + fprintf(text->out, "%s = ", name); } }