[PATCH] osmocom-bb[master]: mobile: Make VTY logging commands available to the mobile app

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/.

Holger Freyther gerrit-no-reply at lists.osmocom.org
Wed Nov 8 14:20:58 UTC 2017


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

mobile: Make VTY logging commands available to the mobile app

So far logging_vty_add_cmds wasn't called. The main.c might be
shared with other apps so place it into the routine that is
setting up the VTY.

Change-Id: I3db9cf288bce12f51e36caad44e9bc34094638f4
---
M src/host/layer23/src/mobile/app_mobile.c
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/34/4734/1

diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c
index 9dbae7c..ba5315f 100644
--- a/src/host/layer23/src/mobile/app_mobile.c
+++ b/src/host/layer23/src/mobile/app_mobile.c
@@ -38,6 +38,7 @@
 #include <osmocom/bb/mobile/mncc.h>
 #include <osmocom/bb/mobile/voice.h>
 #include <osmocom/bb/common/sap_interface.h>
+#include <osmocom/vty/logging.h>
 #include <osmocom/vty/telnet_interface.h>
 
 #include <osmocom/core/msgb.h>
@@ -398,6 +399,7 @@
 
 	vty_info.tall_ctx = l23_ctx;
 	vty_init(&vty_info);
+	logging_vty_add_cmds(NULL);
 	ms_vty_init();
 	dummy_conn.priv = NULL;
 	vty_reading = 1;

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3db9cf288bce12f51e36caad44e9bc34094638f4
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther <holger at freyther.de>



More information about the gerrit-log mailing list