aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-04-16 14:50:11 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-04-16 14:50:55 +0200
commite1977fcd226f3222050c834a70e84e2df332f88d (patch)
tree9ca3a0f6ccbd9b84d2ca5947b5776d44587e184e /tests
parentf97296e0ce33235e530dcf38e6e97417d7db92e4 (diff)
use osmo_init_logging2()
Diffstat (limited to 'tests')
-rw-r--r--tests/CommonLibs/LogTest.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/CommonLibs/LogTest.cpp b/tests/CommonLibs/LogTest.cpp
index b8677e6..5167a62 100644
--- a/tests/CommonLibs/LogTest.cpp
+++ b/tests/CommonLibs/LogTest.cpp
@@ -29,6 +29,8 @@
#include "Logger.h"
extern "C" {
+#include <osmocom/core/msgb.h>
+#include <osmocom/core/talloc.h>
#include <osmocom/core/application.h>
#include <osmocom/core/utils.h>
#include "debug.h"
@@ -50,7 +52,10 @@ int main(int argc, char *argv[])
linfo.cat = categories;
linfo.num_cat = ARRAY_SIZE(categories);
- osmo_init_logging(&linfo);
+ void *tall_ctx = talloc_named_const(NULL, 1, "OsmoTRX context");
+ msgb_talloc_ctx_init(tall_ctx, 0);
+
+ osmo_init_logging2(tall_ctx, &linfo);
log_set_use_color(osmo_stderr_target, 0);
log_set_print_filename(osmo_stderr_target, 0);