From 441d82add9afbc75dc3e9fe45a80ce3ff8f8b15e Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Tue, 4 Dec 2018 16:37:24 +0100 Subject: 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 --- CommonLibs/debug.c | 6 ++++++ CommonLibs/debug.h | 1 + 2 files changed, 7 insertions(+) (limited to 'CommonLibs') 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, }; -- cgit v1.2.3