diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-10-21 06:06:27 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-11-28 02:52:55 +0100 |
commit | 35fb679ab0d5e828c07328cfda4b672426a27e6d (patch) | |
tree | 9af5233e658a877fa3f8d8f6929ab07b72b16ba8 /tests | |
parent | 07351d8f78908176720318e1d8b599310cf9aba8 (diff) |
msc_vlr_tests: log descriptions in color with -v
Change-Id: I2b28a94a5b27932e343952ba82e7e11c46f5e87d
Diffstat (limited to 'tests')
-rw-r--r-- | tests/msc_vlr/msc_vlr_tests.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/msc_vlr/msc_vlr_tests.h b/tests/msc_vlr/msc_vlr_tests.h index 57022b44c..88f80b4f8 100644 --- a/tests/msc_vlr/msc_vlr_tests.h +++ b/tests/msc_vlr/msc_vlr_tests.h @@ -35,9 +35,12 @@ #include <osmocom/msc/rtp_stream.h> extern bool _log_lines; +#define LOG_COLOR "\033[1;33m" +#define LOG_COLOR_OFF "\033[0;m" + #define _log(fmt, args...) do { \ if (_log_lines) \ - fprintf(stderr, " %4d:%s: " fmt "\n", \ + fprintf(stderr, LOG_COLOR " %4d:%s: " fmt LOG_COLOR_OFF "\n", \ __LINE__, __FILE__, ## args ); \ else \ fprintf(stderr, fmt "\n", ## args ); \ |