diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-01-16 09:49:25 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-01-17 19:38:14 +0700 |
commit | 65d74d9864ceee752678ee22fd38d07067746b93 (patch) | |
tree | afb65ecf80c27f2663e0a419b0fdc9f1bf04c7f1 /src/host/trxcon/logging.c | |
parent | 030a6154a69be9353e68fc23cb1be2fff7673b70 (diff) |
trxcon/trxcon.c: do not expose tall_trx_ctx
Both l1ctl_link_init() and trx_if_open() do accept 'tall_ctx' now,
so there is no need to expose the root context anymore. For
logging initialization, we can just pass a pointer.
Change-Id: I7a2231eb880a995d3296b94481a7799e6ff07489
Diffstat (limited to 'src/host/trxcon/logging.c')
-rw-r--r-- | src/host/trxcon/logging.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/host/trxcon/logging.c b/src/host/trxcon/logging.c index 6a3043bb..78915f21 100644 --- a/src/host/trxcon/logging.c +++ b/src/host/trxcon/logging.c @@ -26,7 +26,6 @@ #include <osmocom/core/utils.h> #include "logging.h" -#include "trxcon.h" static struct log_info_cat trx_log_info_cat[] = { [DAPP] = { @@ -78,9 +77,9 @@ static const struct log_info trx_log_info = { .num_cat = ARRAY_SIZE(trx_log_info_cat), }; -int trx_log_init(const char *category_mask) +int trx_log_init(void *tall_ctx, const char *category_mask) { - osmo_init_logging2(tall_trx_ctx, &trx_log_info); + osmo_init_logging2(tall_ctx, &trx_log_info); if (category_mask) log_parse_category_mask(osmo_stderr_target, category_mask); |