diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-12-19 21:03:03 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-12-20 14:19:35 +0100 |
commit | 9f2baf3e04445e70439ac1a68eff27dcb7874c59 (patch) | |
tree | 3d5e4f5ead4a031889bf0a1553c3adaacf0e3801 /CommonLibs | |
parent | 0a2a40f43c4d21a957591aca8a8cc6765aca0f4e (diff) |
Transceiver.cpp: Introduce and use new logging categories
Take the chance to clean up logging lines in this file:
* Use LOGCHAN in more places where chan is useful
* Replace inherited (old osmo-trx) categories such as WARNING with
osmocom ones.
Change-Id: Ic8c218f050f35d48046ccf1561fb0bfc505d4f63
Diffstat (limited to 'CommonLibs')
-rw-r--r-- | CommonLibs/debug.c | 18 | ||||
-rw-r--r-- | CommonLibs/debug.h | 3 |
2 files changed, 21 insertions, 0 deletions
diff --git a/CommonLibs/debug.c b/CommonLibs/debug.c index 09dab2b..cc5be44 100644 --- a/CommonLibs/debug.c +++ b/CommonLibs/debug.c @@ -35,12 +35,30 @@ static const struct log_info_cat default_categories[] = { .color = NULL, .enabled = 1, .loglevel = LOGL_NOTICE, }, + [DTRXCLK] = { + .name = "DTRXCLK", + .description = "TRX Master Clock", + .color = NULL, + .enabled = 1, .loglevel = LOGL_NOTICE, + }, [DTRXCTRL] = { .name = "DTRXCTRL", .description = "TRX CTRL interface", .color = "\033[1;33m", .enabled = 1, .loglevel = LOGL_NOTICE, }, + [DTRXDDL] = { + .name = "DTRXDDL", + .description = "TRX Data interface Downlink", + .color = NULL, + .enabled = 1, .loglevel = LOGL_NOTICE, + }, + [DTRXDUL] = { + .name = "DTRXDUL", + .description = "TRX CTRL interface Uplink", + .color = NULL, + .enabled = 1, .loglevel = LOGL_NOTICE, + }, [DDEV] = { .name = "DDEV", .description = "Device/Driver specific code", diff --git a/CommonLibs/debug.h b/CommonLibs/debug.h index ad12bb8..3837329 100644 --- a/CommonLibs/debug.h +++ b/CommonLibs/debug.h @@ -10,7 +10,10 @@ extern const struct log_info log_info; /* Debug Areas of the code */ enum { DMAIN, + DTRXCLK, DTRXCTRL, + DTRXDDL, + DTRXDUL, DDEV, DLMS, }; |