aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bsc-nat/bsc_nat_test.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-04-17 15:18:52 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-04-17 15:18:52 +0200
commitf7fa89275d0aaedd929811c38c21c157c42631d1 (patch)
tree362b1b9b82295e3645a5134cdfc64928554d09eb /tests/bsc-nat/bsc_nat_test.c
parent1f4851e7037d488d22991715094b3bcb26cf6886 (diff)
use osmo_init_logging2
Diffstat (limited to 'tests/bsc-nat/bsc_nat_test.c')
-rw-r--r--tests/bsc-nat/bsc_nat_test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/bsc-nat/bsc_nat_test.c b/tests/bsc-nat/bsc_nat_test.c
index bb287ec4c..7aa39ece7 100644
--- a/tests/bsc-nat/bsc_nat_test.c
+++ b/tests/bsc-nat/bsc_nat_test.c
@@ -1559,9 +1559,10 @@ static const struct log_info log_info = {
int main(int argc, char **argv)
{
- msgb_talloc_ctx_init(NULL, 0);
+ void *tall_ctx = talloc_named_const(NULL, 1, "bsc_nat_test");
+ msgb_talloc_ctx_init(tall_ctx, 0);
sccp_set_log_area(DLSCCP);
- osmo_init_logging(&log_info);
+ osmo_init_logging2(tall_ctx, &log_info);
test_filter();
test_contrack();