Change in osmo-bts[master]: oc2gbts_mgr: use osmo_init_logging2() instead of osmo_init_logging()

dexter gerrit-no-reply at lists.osmocom.org
Fri Mar 15 14:46:50 UTC 2019


dexter has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/75/13275/1

diff --git a/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c b/src/osmo-bts-oc2g/misc/oc2gbts_mgr.c
index 46831f6..2aa8a01 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_msgb_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: newchange
Gerrit-Change-Id: Iebc80cd1f77f10a879d4536d788377f522dd853f
Gerrit-Change-Number: 13275
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190315/21851e3a/attachment.html>


More information about the gerrit-log mailing list