fix: missing equal sign when printing events without colors
authorJulien Desfossez <jdesfossez@efficios.com>
Fri, 3 Mar 2017 19:16:54 +0000 (14:16 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:39 +0000 (12:57 -0400)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/text/print.c

index 413d9a600bde026d9a522f3e97bcb3b8e7a7257a..db6bae374965178c782b4cf53955c0da294ec569 100644 (file)
@@ -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 {
        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 {
                fprintf(text->out, "%s%s%s = ", COLOR_FIELD_NAME, name,
                        COLOR_RST);
        } else {
-               fputs(name, text->out);
+               fprintf(text->out, "%s = ", name);
        }
 }
 
        }
 }
 
This page took 0.025079 seconds and 4 git commands to generate.