summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-04-17 14:21:55 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-04-17 14:22:36 +0200
commit7e3476dc769d42d851a7d77abecfe193cfdefbc7 (patch)
tree4cc510bf0053868b6f3d5e45370138d67b661314 /examples
parentf1fa4a7a9c0debd481234d2a188b1a06e440d65b (diff)
use osmo_init_logging2
Diffstat (limited to 'examples')
-rw-r--r--examples/m3ua_example.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/m3ua_example.c b/examples/m3ua_example.c
index b3a1505..a9f455c 100644
--- a/examples/m3ua_example.c
+++ b/examples/m3ua_example.c
@@ -66,8 +66,9 @@ static void init_logging(void)
{
const int log_cats[] = { DLSS7, DLSUA, DLM3UA, DLSCCP, DLINP };
unsigned int i;
-
- osmo_init_logging(&log_info);
+ void *tall_ctx = talloc_named_const(NULL, 1, "example");
+ msgb_talloc_ctx_init(tall_ctx, 0);
+ osmo_init_logging2(tall_ctx, &log_info);
for (i = 0; i < ARRAY_SIZE(log_cats); i++)
log_set_category_filter(osmo_stderr_target, log_cats[i], 1, LOGL_DEBUG);