From 42f2d61ac9d4be3ffc5ece501de8d0ac25f0ca14 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 1 Apr 2018 16:54:40 +0200 Subject: use osmo_init_logging2() with proper talloc ctx There is a duality of initialization: early_init() in bts.cpp wants to init logging even before static instances get initialized. Make sure that tall_pcu_ctx is initialized during early_init() as well. There is a build context that does not seem to include bts.cpp (osmo-pcu-remote), so to be sure, init tall_pcu_ctx as NULL and both in early_init() as well as pcu_main.cpp, init both tall_pcu_ctx and logging if it is still NULL. Change-Id: I2199b62d0270bd35dec2283e8f5b364b7c63915b --- tests/rlcmac/RLCMACTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/rlcmac/RLCMACTest.cpp') diff --git a/tests/rlcmac/RLCMACTest.cpp b/tests/rlcmac/RLCMACTest.cpp index 9155809c..3de4facc 100644 --- a/tests/rlcmac/RLCMACTest.cpp +++ b/tests/rlcmac/RLCMACTest.cpp @@ -230,7 +230,7 @@ void testCsnLeftAlignedVarBmpBounds(void *test_ctx) int main(int argc, char *argv[]) { void *ctx = talloc_named_const(NULL, 1, "RLCMACTest"); - osmo_init_logging(&gprs_log_info); + osmo_init_logging2(ctx, &gprs_log_info); //printSizeofRLCMAC(); testRlcMacDownlink(ctx); -- cgit v1.2.3