[PATCH] osmocom-bb[master]: host/trxcon: use osmo_init_logging2()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Sun Apr 8 10:46:12 UTC 2018


Review at  https://gerrit.osmocom.org/7667

host/trxcon: use osmo_init_logging2()

The osmo_init_logging() doesn't allow to specify a talloc context
for libosmocore logging subsystem, so this is why the new version
was introduced. Let's use it.

Change-Id: I06c4a1f7f839f774bc428e89cfac30132bae904d
---
M src/host/trxcon/logging.c
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/67/7667/1

diff --git a/src/host/trxcon/logging.c b/src/host/trxcon/logging.c
index a76b4d9..6a3043b 100644
--- a/src/host/trxcon/logging.c
+++ b/src/host/trxcon/logging.c
@@ -26,6 +26,7 @@
 #include <osmocom/core/utils.h>
 
 #include "logging.h"
+#include "trxcon.h"
 
 static struct log_info_cat trx_log_info_cat[] = {
 	[DAPP] = {
@@ -79,7 +80,7 @@
 
 int trx_log_init(const char *category_mask)
 {
-	osmo_init_logging(&trx_log_info);
+	osmo_init_logging2(tall_trx_ctx, &trx_log_info);
 
 	if (category_mask)
 		log_parse_category_mask(osmo_stderr_target, category_mask);

-- 
To view, visit https://gerrit.osmocom.org/7667
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I06c4a1f7f839f774bc428e89cfac30132bae904d
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list