Change in osmo-msc[master]: msc_vlr_tests: log descriptions in color with -v

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

neels gerrit-no-reply at lists.osmocom.org
Sun Nov 3 23:21:21 UTC 2019


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/15951 )


Change subject: msc_vlr_tests: log descriptions in color with -v
......................................................................

msc_vlr_tests: log descriptions in color with -v

Change-Id: I2b28a94a5b27932e343952ba82e7e11c46f5e87d
---
M tests/msc_vlr/msc_vlr_tests.h
1 file changed, 4 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/51/15951/1

diff --git a/tests/msc_vlr/msc_vlr_tests.h b/tests/msc_vlr/msc_vlr_tests.h
index 57022b4..88f80b4 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 ); \

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/15951
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I2b28a94a5b27932e343952ba82e7e11c46f5e87d
Gerrit-Change-Number: 15951
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191103/57eba554/attachment.htm>


More information about the gerrit-log mailing list