From a829b45c8553765dfdd7201e1875a033a91d3a90 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 5 Apr 2018 03:02:35 +0200 Subject: use osmo_init_logging2() with proper talloc ctx Ironically, when deprecating osmo_init_logging() in I216837780e9405fdaec8059c63d10699c695b360, I forgot to change the callers within libosmocore itself, i.e. in the various regression tests. Change-Id: Ia36c248f99353d5baaa2533f46a2f60a8579bdf8 --- tests/ussd/ussd_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/ussd/ussd_test.c') diff --git a/tests/ussd/ussd_test.c b/tests/ussd/ussd_test.c index 429c72de..1f79063b 100644 --- a/tests/ussd/ussd_test.c +++ b/tests/ussd/ussd_test.c @@ -122,8 +122,9 @@ int main(int argc, char **argv) uint16_t size; int i; struct msgb *msg; + void *ctx = talloc_named_const(NULL, 0, "ussd_test"); - osmo_init_logging(&info); + osmo_init_logging2(ctx, &info); memset(&req, 0, sizeof(req)); gsm0480_decode_ss_request((struct gsm48_hdr *) ussd_request, -- cgit v1.2.3