summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-11-08 15:06:15 +0100
committerHolger Freyther <holger@freyther.de>2017-11-09 03:47:20 +0000
commit0fd13fcd3cb505008c042d0b99e257da1ff76c5a (patch)
tree956502f1915fa38f1fcd7d11d99550a61aa6c22c
parent3483d4d8447de3a0177204e4c8b74daa57f02cda (diff)
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
-rw-r--r--src/host/layer23/src/mobile/app_mobile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c
index bd786b56..e3e948f3 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 @@ int l23_app_init(int (*mncc_recv)(struct osmocom_ms *ms, int, void *),
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;