aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tx_power/tx_power_test.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-04-01 16:11:39 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-04-04 17:54:37 +0200
commit113e30cb0639cefbafdad2862c5e69b0e17d9bf3 (patch)
tree753dbe0cc7a4e7fd09cb44e9da2db7be401916f7 /tests/tx_power/tx_power_test.c
parent091fcf147ae83d8daec92b2506d14e5e5ad35f80 (diff)
use osmo_init_logging2() with proper talloc ctx
Completely drop bts_log_init(), call osmo_init_logging2() directly instead: all callers of bts_log_init() passed NULL as category string, so all it ever did was call osmo_init_logging(). The bts_log_info is already declared in the .h. Here and there also define a proper talloc root context instead of using NULL. Change-Id: Ic049f77bef74123b95350bcae182a468e0086b9c
Diffstat (limited to 'tests/tx_power/tx_power_test.c')
-rw-r--r--tests/tx_power/tx_power_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tx_power/tx_power_test.c b/tests/tx_power/tx_power_test.c
index a47d186c..ad3f68ce 100644
--- a/tests/tx_power/tx_power_test.c
+++ b/tests/tx_power/tx_power_test.c
@@ -211,7 +211,7 @@ int main(int argc, char **argv)
tall_bts_ctx = talloc_named_const(NULL, 1, "OsmoBTS context");
msgb_talloc_ctx_init(tall_bts_ctx, 0);
- bts_log_init(NULL);
+ osmo_init_logging2(tall_bts_ctx, &bts_log_info);
osmo_stderr_target->categories[DL1C].loglevel = LOGL_DEBUG;
log_set_print_filename(osmo_stderr_target, 0);