dexter has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/13275 )

Change subject: oc2gbts_mgr: use osmo_init_logging2() instead of 
osmo_init_logging()
......................................................................

oc2gbts_mgr: use osmo_init_logging2() instead of osmo_init_logging()

The function osmo_init_logging() is deprecated, lets use
osmo_init_logging2() as suggested.

Change-Id: Iebc80cd1f77f10a879d4536d788377f522dd853f
---
M src/osmo-bts-oc2g/misc/oc2gbts_mgr.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c 
b/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c
index 46831f6..99d2b56 100644
--- a/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c
+++ b/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c
@@ -261,9 +261,9 @@
        .num_cat = ARRAY_SIZE(mgr_log_info_cat),
 };

-static int mgr_log_init(void)
+static int mgr_log_init(void *ctx)
 {
-       osmo_init_logging(&mgr_log_info);
+       osmo_init_logging2(ctx, &mgr_log_info);
        return 0;
 }

@@ -276,7 +276,7 @@
        tall_msgb_ctx = talloc_named_const(tall_mgr_ctx, 1, "msgb");
        msgb_talloc_ctx_init(tall_msgb_ctx, 0);

-       mgr_log_init();
+       mgr_log_init(tall_mgr_ctx);

        osmo_init_ignore_signals();
        signal(SIGINT, &signal_handler);

--
To view, visit https://gerrit.osmocom.org/13275
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iebc80cd1f77f10a879d4536d788377f522dd853f
Gerrit-Change-Number: 13275
Gerrit-PatchSet: 5
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Daniel Willmann <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>
Gerrit-Reviewer: Vadim Yanitskiy <[email protected]>
Gerrit-Reviewer: dexter <[email protected]>

Reply via email to