fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/30096 )
Change subject: trxcon: cosmetic: s/trx_log_init()/trxcon_logging_init()/ ......................................................................
trxcon: cosmetic: s/trx_log_init()/trxcon_logging_init()/
Change-Id: I65ab1e6d3a3bea65aeb13ab286e33795ba57f1f3 Related: OS#5599 --- M src/host/trxcon/include/osmocom/bb/trxcon/logging.h M src/host/trxcon/src/logging.c M src/host/trxcon/src/trxcon_main.c 3 files changed, 8 insertions(+), 8 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/96/30096/1
diff --git a/src/host/trxcon/include/osmocom/bb/trxcon/logging.h b/src/host/trxcon/include/osmocom/bb/trxcon/logging.h index 617e8f1..f8521a0 100644 --- a/src/host/trxcon/include/osmocom/bb/trxcon/logging.h +++ b/src/host/trxcon/include/osmocom/bb/trxcon/logging.h @@ -12,4 +12,4 @@ DSCHD, };
-int trx_log_init(void *tall_ctx, const char *category_mask); +int trxcon_logging_init(void *tall_ctx, const char *category_mask); diff --git a/src/host/trxcon/src/logging.c b/src/host/trxcon/src/logging.c index 5c16ac5..747b1ad 100644 --- a/src/host/trxcon/src/logging.c +++ b/src/host/trxcon/src/logging.c @@ -23,7 +23,7 @@
#include <osmocom/bb/trxcon/logging.h>
-static struct log_info_cat trx_log_info_cat[] = { +static struct log_info_cat trxcon_log_info_cat[] = { [DAPP] = { .name = "DAPP", .description = "Application", @@ -68,14 +68,14 @@ }, };
-static const struct log_info trx_log_info = { - .cat = trx_log_info_cat, - .num_cat = ARRAY_SIZE(trx_log_info_cat), +static const struct log_info trxcon_log_info = { + .cat = trxcon_log_info_cat, + .num_cat = ARRAY_SIZE(trxcon_log_info_cat), };
-int trx_log_init(void *tall_ctx, const char *category_mask) +int trxcon_logging_init(void *tall_ctx, const char *category_mask) { - osmo_init_logging2(tall_ctx, &trx_log_info); + osmo_init_logging2(tall_ctx, &trxcon_log_info);
if (category_mask) log_parse_category_mask(osmo_stderr_target, category_mask); diff --git a/src/host/trxcon/src/trxcon_main.c b/src/host/trxcon/src/trxcon_main.c index 838bb6a..60e8d6d 100644 --- a/src/host/trxcon/src/trxcon_main.c +++ b/src/host/trxcon/src/trxcon_main.c @@ -560,7 +560,7 @@ osmo_init_ignore_signals();
/* Init logging system */ - trx_log_init(tall_trxcon_ctx, app_data.debug_mask); + trxcon_logging_init(tall_trxcon_ctx, app_data.debug_mask); l1sched_logging_init(DSCH, DSCHD);
/* Configure pretty logging */