aboutsummaryrefslogtreecommitdiffstats
path: root/CommonLibs
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-12-04 16:37:24 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-12-07 11:15:02 +0100
commit441d82add9afbc75dc3e9fe45a80ce3ff8f8b15e (patch)
tree6f8834a171d3298e56914442352625c7d5ebb1eb /CommonLibs
parent867cea575b133b332ee1a45846bcaa6ac06d5486 (diff)
Add TRXCTRL log category
This log category is applied to messages related to TRX CTRL socket interface, and it's printed in yellow, same color used in osmo-bts-trx for TRX category (so same messages are printed with same color in both sides). Change-Id: I98ec5e416272783ad3fbadf70478a4e48ae64983
Diffstat (limited to 'CommonLibs')
-rw-r--r--CommonLibs/debug.c6
-rw-r--r--CommonLibs/debug.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/CommonLibs/debug.c b/CommonLibs/debug.c
index c6de21a..294924d 100644
--- a/CommonLibs/debug.c
+++ b/CommonLibs/debug.c
@@ -10,6 +10,12 @@ static const struct log_info_cat default_categories[] = {
.color = NULL,
.enabled = 1, .loglevel = LOGL_NOTICE,
},
+ [DTRXCTRL] = {
+ .name = "DTRXCTRL",
+ .description = "TRX CTRL interface",
+ .color = "\033[1;33m",
+ .enabled = 1, .loglevel = LOGL_NOTICE,
+ },
[DDEV] = {
.name = "DDEV",
.description = "Device/Driver specific code",
diff --git a/CommonLibs/debug.h b/CommonLibs/debug.h
index f8f6239..a5b9271 100644
--- a/CommonLibs/debug.h
+++ b/CommonLibs/debug.h
@@ -5,6 +5,7 @@ extern const struct log_info log_info;
/* Debug Areas of the code */
enum {
DMAIN,
+ DTRXCTRL,
DDEV,
DLMS,
};