aboutsummaryrefslogtreecommitdiffstats
path: root/CommonLibs
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-12-20 22:47:06 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-07 16:04:04 +0100
commit84231bd8b7f1675c91979aab25be6d2beb41e5ba (patch)
treeef2461dfaea98b4714afa5cef283fdc9e1b41eb6 /CommonLibs
parentaebbfe0ee779cfafc421c201658a68f74376da02 (diff)
uhd: Use DEVDRV log category and support UHD >=3.11 logging framework
Diffstat (limited to 'CommonLibs')
-rw-r--r--CommonLibs/Logger.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/CommonLibs/Logger.h b/CommonLibs/Logger.h
index ab72303..b752e51 100644
--- a/CommonLibs/Logger.h
+++ b/CommonLibs/Logger.h
@@ -58,6 +58,9 @@ extern "C" {
#define LOGLV(category, level) \
Log(category, level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "] "
+#define LOGSRC(category, level, file, line) \
+ Log(category, level, file, line).get() << "[tid=" << pthread_self() << "] "
+
#define LOGCHAN(chan, category, level) \
Log(category, LOGL_##level, __BASE_FILE__, __LINE__).get() << "[tid=" << pthread_self() << "][chan=" << chan << "] "