]> sourceware.org Git - systemtap.git/commitdiff
staprun: make the previous commit obey the color_errors switch again
authorSultan Alsawaf <sultan@openresty.com>
Mon, 4 Oct 2021 20:53:59 +0000 (13:53 -0700)
committerSultan Alsawaf <sultan@openresty.com>
Mon, 4 Oct 2021 20:53:59 +0000 (13:53 -0700)
The color_errors check inside print_color() was not preserved. Fix it.

staprun/staprun.h

index 5c814b9021d4e6dfc2cab32ab5ec1f98e879748e..d47c345e87363b0d4104625c704eb0b512c6c9fc 100644 (file)
@@ -85,7 +85,7 @@ do {                                                                          \
        int num;                                                                \
                                                                                \
        /* Build the final format string so there's only one eprintf() call */  \
-       seq = color ? parse_stap_color(color) : NULL;                           \
+       seq = color && color_errors ? parse_stap_color(color) : NULL;           \
        if (seq)                                                                \
                num = snprintf(NULL, 0, COLOR_FMT "%s " COLOR_RESET "%s", seq,  \
                               tag, fmt);                                       \
This page took 0.029467 seconds and 5 git commands to generate.