summaryrefslogtreecommitdiffstats
path: root/tests/gprs
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-04-05 03:02:35 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-04-06 04:37:50 +0200
commita829b45c8553765dfdd7201e1875a033a91d3a90 (patch)
tree64c0b73850ecc5aac87e3f76860d5a79f8eed30a /tests/gprs
parent3a32147366faa6e08ae37700b1314b92f7b788a7 (diff)
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
Diffstat (limited to 'tests/gprs')
-rw-r--r--tests/gprs/gprs_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gprs/gprs_test.c b/tests/gprs/gprs_test.c
index 6f16fb2f..70e30099 100644
--- a/tests/gprs/gprs_test.c
+++ b/tests/gprs/gprs_test.c
@@ -120,7 +120,8 @@ static struct log_info info = {
int main(int argc, char **argv)
{
- osmo_init_logging(&info);
+ void *ctx = talloc_named_const(NULL, 0, "gprs_test");
+ osmo_init_logging2(ctx, &info);
test_gsm_03_03_apn();