aboutsummaryrefslogtreecommitdiffstats
path: root/CommonLibs/debug.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-08-17 19:55:38 +0200
committerHarald Welte <laforge@gnumonks.org>2018-08-17 19:57:40 +0200
commit5cc8858d8f167b521e412883bb477e73f88280cb (patch)
tree1d7e56fefc146fd3527ff0aa92ff0e43c9e99853 /CommonLibs/debug.c
parent70d0344b3102f2cf2ed8bc97221afa5038588bf9 (diff)
logging: Introduce new "DDEV" category for device-specific code
The DMAIN category got too overloaded. Let's have the code in Transceive52M/device/* use the new DDEV category. Also, in some cases the log levels have been adjusted to ensure that enabling INFO level should not result in a complete overflow of messages during normal operation. Change-Id: I844fe4a75bf277cd3cc5bd8fa06e06ad97b2ea95
Diffstat (limited to 'CommonLibs/debug.c')
-rw-r--r--CommonLibs/debug.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/CommonLibs/debug.c b/CommonLibs/debug.c
index 01854c0..c6de21a 100644
--- a/CommonLibs/debug.c
+++ b/CommonLibs/debug.c
@@ -10,9 +10,15 @@ static const struct log_info_cat default_categories[] = {
.color = NULL,
.enabled = 1, .loglevel = LOGL_NOTICE,
},
+ [DDEV] = {
+ .name = "DDEV",
+ .description = "Device/Driver specific code",
+ .color = NULL,
+ .enabled = 1, .loglevel = LOGL_INFO,
+ },
[DLMS] = {
.name = "DLMS",
- .description = "LimeSuite category",
+ .description = "Logging from within LimeSuite itself",
.color = NULL,
.enabled = 1, .loglevel = LOGL_NOTICE,
},