aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-04-15 22:14:50 +0200
committerHarald Welte <laforge@gnumonks.org>2018-04-15 22:15:25 +0200
commit11a0de04b653b0b93c26b33c7ca6d14b190fc6d1 (patch)
tree80c200b9d21409aca05143022983513b32734d93
parent6369f30c4de1726de319edab18f1a6d871d1f4c4 (diff)
use osmo_init_logging2() to avoid allocating from NULL context
This requires libosmocore I216837780e9405fdaec8059c63d10699c695b360 or later to work. Change-Id: Id704689c9ad35a0db97aedae014e8b36eb1f86e2
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index b4ffb63..c267f5f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -117,7 +117,7 @@ int main(int argc, char **argv)
/* initialize osmocom */
tall_mncc_ctx = talloc_named_const(NULL, 0, "MNCC CTX");
osmo_init_ignore_signals();
- osmo_init_logging(&mncc_sip_info);
+ osmo_init_logging2(tall_mncc_ctx, &mncc_sip_info);
osmo_stats_init(tall_mncc_ctx);
mncc_sip_vty_init();