From 06e8da8b9321672c881e2a0e97582a4c9a31dac7 Mon Sep 17 00:00:00 2001 From: Julien Desfossez Date: Fri, 3 Mar 2017 14:16:54 -0500 Subject: [PATCH] fix: missing equal sign when printing events without colors MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julien Desfossez Signed-off-by: Jérémie Galarneau --- plugins/text/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.34.1