aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-03-30 23:04:04 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-03-30 23:20:03 +0200
commit08b3828995d4fcfb32dbba6a92836bf38945d03a (patch)
tree8099c7f7fb1dd626c6a42ca4524531af5dc1fe99 /src/utils
parent053e27528cf4da1f96bd5bf78c6982b73b790100 (diff)
use osmo_init_logging2() with proper talloc ctx
Since the logging allocations now also show up in the root context report, some tests need adjusted talloc checks. In msc_vlr_tests, also output the number of talloc blocks before tests are started to show that the number didn't change after the tests. Change-Id: Iae07ae60230c7bab28e52b5df97fa3844778158e
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/smpp_mirror.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/smpp_mirror.c b/src/utils/smpp_mirror.c
index fa509df7f..30535535b 100644
--- a/src/utils/smpp_mirror.c
+++ b/src/utils/smpp_mirror.c
@@ -343,12 +343,13 @@ int main(int argc, char **argv)
char *host = "localhost";
int port = 0;
int rc;
+ void *ctx = talloc_named_const(NULL, 0, "smpp_mirror");
- msgb_talloc_ctx_init(NULL, 0);
+ msgb_talloc_ctx_init(ctx, 0);
memset(&esme, 0, sizeof(esme));
- osmo_init_logging(&log_info);
+ osmo_init_logging2(ctx, &log_info);
snprintf((char *) esme.system_id, sizeof(esme.system_id), "mirror");
snprintf((char *) esme.password, sizeof(esme.password), "mirror");