From 8cb66a52fb2337e639617afbdf2ea38d483c34b4 Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Mon, 4 Oct 2021 14:15:58 -0700 Subject: [PATCH] staprun: don't colorize the space following the warning/error tags Brings the colorization back in line with the old behavior. --- staprun/staprun.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staprun/staprun.h b/staprun/staprun.h index d47c345e8..b15c9291f 100644 --- a/staprun/staprun.h +++ b/staprun/staprun.h @@ -87,7 +87,7 @@ do { \ /* Build the final format string so there's only one eprintf() call */ \ seq = color && color_errors ? parse_stap_color(color) : NULL; \ if (seq) \ - num = snprintf(NULL, 0, COLOR_FMT "%s " COLOR_RESET "%s", seq, \ + num = snprintf(NULL, 0, COLOR_FMT "%s" COLOR_RESET " %s", seq, \ tag, fmt); \ else \ num = snprintf(NULL, 0, "%s %s", tag, fmt); \ @@ -99,7 +99,7 @@ do { \ } \ \ if (seq) { \ - sprintf(f, COLOR_FMT "%s " COLOR_RESET "%s", seq, tag, fmt); \ + sprintf(f, COLOR_FMT "%s" COLOR_RESET " %s", seq, tag, fmt); \ free(seq); \ } else { \ sprintf(f, "%s %s", tag, fmt); \ -- 2.43.5