Skip to content
Snippets Groups Projects
Commit 9dd9db71 authored by Nikos Mavrogiannopoulos's avatar Nikos Mavrogiannopoulos
Browse files

dist_printf/default_print: use same priority for json and --no-decorate

parent 4c4261a4
No related branches found
No related tags found
No related merge requests found
......@@ -1317,11 +1317,11 @@ default_printf(unsigned * const jsonfirst, const char *title, const char *jsonti
va_list args;
va_start(args, fmt);
if (flags & FLAG_NO_DECORATE) {
if (flags & FLAG_JSON) {
va_json_printf(jsonfirst, jsontitle, fmt, args);
} else if (flags & FLAG_NO_DECORATE) {
vprintf(fmt, args);
printf("\n");
} else if (flags & FLAG_JSON) {
va_json_printf(jsonfirst, jsontitle, fmt, args);
} else {
va_color_printf(KBLUE, title, fmt, args);
}
......@@ -1340,7 +1340,10 @@ dist_printf(unsigned * const jsonfirst, const char *title, const char *jsontitle
if (flags & FLAG_JSON) {
va_json_printf(jsonfirst, jsontitle, fmt, args);
}
else {
else if (flags & FLAG_NO_DECORATE) {
vprintf(fmt, args);
printf("\n");
} else {
va_color_printf(KMAG, title, fmt, args);
}
va_end(args);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment