diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-04-08 17:23:18 +0700 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-04-09 08:26:20 +0000 |
commit | fa0d7c0c4f1c35fa2b605283ac8a5117fa843501 (patch) | |
tree | 53371b2c6f9d8651f51d5dc9c91ef0a2fa7958c0 /src/host/trxcon | |
parent | 05d95a46fdcdaa53afe45f0afa704ed349a3ff57 (diff) |
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
Diffstat (limited to 'src/host/trxcon')
-rw-r--r-- | src/host/trxcon/logging.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <osmocom/core/utils.h> #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); |