diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-09-28 22:34:02 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-09-28 22:34:02 -0700 |
| commit | 159ac495db4cb32f40870e19ee8a87ec77fc3482 (patch) | |
| tree | c99e2fc131e975e46dabf54c359ee50befce8da8 /src | |
| parent | 35ad85188b28bcfd13c4e286eb797df6779281ad (diff) | |
| download | nng-159ac495db4cb32f40870e19ee8a87ec77fc3482.tar.gz nng-159ac495db4cb32f40870e19ee8a87ec77fc3482.tar.bz2 nng-159ac495db4cb32f40870e19ee8a87ec77fc3482.zip | |
Fix nuts colors to match acutest.
Diffstat (limited to 'src')
| -rw-r--r-- | src/testing/util.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/testing/util.c b/src/testing/util.c index d59171c2..e1543933 100644 --- a/src/testing/util.c +++ b/src/testing/util.c @@ -166,11 +166,13 @@ nuts_sleep(int msec) } #define NUTS_COLOR_DEFAULT_ 0 -#define NUTS_COLOR_GREEN_ 1 -#define NUTS_COLOR_RED_ 2 -#define NUTS_COLOR_DEFAULT_INTENSIVE_ 3 -#define NUTS_COLOR_GREEN_INTENSIVE_ 4 -#define NUTS_COLOR_RED_INTENSIVE_ 5 +#define NUTS_COLOR_RED_ 1 +#define NUTS_COLOR_GREEN_ 2 +#define NUTS_COLOR_YELLOW_ 3 +#define NUTS_COLOR_DEFAULT_INTENSIVE_ 10 +#define NUTS_COLOR_RED_INTENSIVE_ 11 +#define NUTS_COLOR_GREEN_INTENSIVE_ 12 +#define NUTS_COLOR_YELLOW_INTENSIVE 13 bool nuts_has_ipv6(void) @@ -209,7 +211,7 @@ nuts_logger(nng_log_level level, nng_log_facility fac, const char *msgid, switch (level) { case NNG_LOG_DEBUG: lstr = "DEBUG"; - color = NUTS_COLOR_DEFAULT_; + color = NUTS_COLOR_GREEN_; break; case NNG_LOG_INFO: lstr = "INFO"; @@ -221,11 +223,11 @@ nuts_logger(nng_log_level level, nng_log_facility fac, const char *msgid, break; case NNG_LOG_WARN: lstr = "WARNING"; - color = NUTS_COLOR_RED_; + color = NUTS_COLOR_YELLOW_; break; case NNG_LOG_ERR: lstr = "ERROR"; - color = NUTS_COLOR_RED_INTENSIVE_; + color = NUTS_COLOR_RED_; break; default: lstr = "LEVEL UNKNOWN"; |
