test_common: use osmo_init_logging2 instead of osmo_init_logging

osmo_init_logging is deprecated, lets use osmo_init_logging2

Change-Id: I00ff05e27a89f515f0ce874d6f130b2937b8f1cc
This commit is contained in:
Philipp Maier 2022-01-12 13:46:53 +01:00
parent adec82f3b1
commit bc518cf152
1 changed files with 3 additions and 1 deletions

View File

@ -70,16 +70,18 @@ static const struct log_info test_log_info = {
.num_cat = ARRAY_SIZE(log_cat),
};
static void *tall_hnb_ctx;
static void *msgb_ctx;
int test_common_init(void)
{
int rc;
tall_hnb_ctx = talloc_named_const(NULL, 0, "hnb_context");
msgb_ctx = msgb_talloc_ctx_init(NULL, 0);
talloc_asn1_ctx = talloc_named_const(NULL, 0, "asn1_context");
rc = osmo_init_logging(&test_log_info);
rc = osmo_init_logging2(tall_hnb_ctx, &test_log_info);
if (rc < 0)
exit(1);