From e1977fcd226f3222050c834a70e84e2df332f88d Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 16 Apr 2018 14:50:11 +0200 Subject: use osmo_init_logging2() Change-Id: I2c28e6e6e3eb9f587680b34330e03408e32c2b94 --- tests/CommonLibs/LogTest.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') 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 +#include #include #include #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); -- cgit v1.2.3