From 224e8db35c29a966c68755fd0a9fdc8279f979c5 Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Wed, 30 Dec 2020 10:53:48 +0000 Subject: [PATCH] log: remove color --- src/common/log.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/common/log.c b/src/common/log.c index b9986fb7..8e597db1 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -3,20 +3,14 @@ #include #include -#define LABWC_COLOR_YELLOW "\033[0;33m" -#define LABWC_COLOR_RED "\033[0;31m" -#define LABWC_COLOR_RESET "\033[0m" - void info(const char *msg, ...) { va_list params; - fprintf(stderr, LABWC_COLOR_YELLOW); - fprintf(stderr, "[labwc] "); + fprintf(stderr, "[labwc] info: "); va_start(params, msg); vfprintf(stderr, msg, params); va_end(params); - fprintf(stderr, LABWC_COLOR_RESET); fprintf(stderr, "\n"); } @@ -24,12 +18,10 @@ void warn(const char *err, ...) { va_list params; - fprintf(stderr, LABWC_COLOR_RED); - fprintf(stderr, "[labwc] "); + fprintf(stderr, "[labwc] warn: "); va_start(params, err); vfprintf(stderr, err, params); va_end(params); - fprintf(stderr, LABWC_COLOR_RESET); fprintf(stderr, "\n"); }