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/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Nov 28 15:24:29 UTC 2019


laforge has submitted this change. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve



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: 6
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191128/946bca16/attachment.htm>


More information about the gerrit-log mailing list