fix: missing equal sign when printing events without colors
[babeltrace.git] / 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 {
-               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);
        }
 }
 
This page took 0.023325 seconds and 4 git commands to generate.