From fa0d7c0c4f1c35fa2b605283ac8a5117fa843501 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 8 Apr 2018 17:23:18 +0700 Subject: host/trxcon: use osmo_init_logging2() The osmo_init_logging() doesn't allow to specify a talloc context for libosmocore logging subsystem, so this is why the new version was introduced. Let's use it. Change-Id: I06c4a1f7f839f774bc428e89cfac30132bae904d --- src/host/trxcon/logging.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/host/trxcon/logging.c b/src/host/trxcon/logging.c index a76b4d97..6a3043bb 100644 --- a/src/host/trxcon/logging.c +++ b/src/host/trxcon/logging.c @@ -26,6 +26,7 @@ #include #include "logging.h" +#include "trxcon.h" static struct log_info_cat trx_log_info_cat[] = { [DAPP] = { @@ -79,7 +80,7 @@ static const struct log_info trx_log_info = { int trx_log_init(const char *category_mask) { - osmo_init_logging(&trx_log_info); + osmo_init_logging2(tall_trx_ctx, &trx_log_info); if (category_mask) log_parse_category_mask(osmo_stderr_target, category_mask); -- cgit v1.2.3