aboutsummaryrefslogtreecommitdiffstats
path: root/CommonLibs
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-04-25 12:17:10 +0200
committerHarald Welte <laforge@gnumonks.org>2018-06-13 21:45:32 +0000
commitc7a0bf1ffc7f92f8f51311a307f53e925f465320 (patch)
tree517c7da988345efa5ae3bf0e7cc93b25f4f64629 /CommonLibs
parent940738e86aa9e69c0b5d76c75957e48244e65f28 (diff)
lms: Several improvements and compilation/runtime fixes
Continuation of initial work done on LimeSuite support from Harald. Change-Id: Ib2fca81b76d027b08e2891056fa076d071597783
Diffstat (limited to 'CommonLibs')
-rw-r--r--CommonLibs/Logger.h3
-rw-r--r--CommonLibs/debug.c6
-rw-r--r--CommonLibs/debug.h1
3 files changed, 10 insertions, 0 deletions
diff --git a/CommonLibs/Logger.h b/CommonLibs/Logger.h
index 5b0b05c..e18ecfb 100644
--- a/CommonLibs/Logger.h
+++ b/CommonLibs/Logger.h
@@ -53,6 +53,9 @@ extern "C" {
#define LOGC(category, level) \
Log(category, LOGL_##level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "] "
+#define LOGLV(category, level) \
+ Log(category, level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "] "
+
/**
A C++ stream-based thread-safe logger.
This object is NOT the global logger;
diff --git a/CommonLibs/debug.c b/CommonLibs/debug.c
index e4db2f3..01854c0 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,
},
+ [DLMS] = {
+ .name = "DLMS",
+ .description = "LimeSuite category",
+ .color = NULL,
+ .enabled = 1, .loglevel = LOGL_NOTICE,
+ },
};
const struct log_info log_info = {
diff --git a/CommonLibs/debug.h b/CommonLibs/debug.h
index 7038f4c..06ad74e 100644
--- a/CommonLibs/debug.h
+++ b/CommonLibs/debug.h
@@ -5,4 +5,5 @@ extern const struct log_info log_info;
/* Debug Areas of the code */
enum {
DMAIN,
+ DLMS,
};