mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
log: remove color
This commit is contained in:
parent
529d7016f2
commit
224e8db35c
1 changed files with 2 additions and 10 deletions
|
|
@ -3,20 +3,14 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue