diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-12-20 22:47:06 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-01-07 16:04:04 +0100 |
commit | 84231bd8b7f1675c91979aab25be6d2beb41e5ba (patch) | |
tree | ef2461dfaea98b4714afa5cef283fdc9e1b41eb6 /CommonLibs | |
parent | aebbfe0ee779cfafc421c201658a68f74376da02 (diff) |
uhd: Use DEVDRV log category and support UHD >=3.11 logging framework
Change-Id: I36f1ff7d425a2144fb512ff393af02741eb4a3d4
Diffstat (limited to 'CommonLibs')
-rw-r--r-- | CommonLibs/Logger.h | 3 |
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 << "] " |