Holger Freyther has submitted this change and it was merged.

Change subject: mobile: Make VTY logging commands available to the mobile app
......................................................................


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(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/host/layer23/src/mobile/app_mobile.c 
b/src/host/layer23/src/mobile/app_mobile.c
index bd786b5..e3e948f 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: merged
Gerrit-Change-Id: I3db9cf288bce12f51e36caad44e9bc34094638f4
Gerrit-PatchSet: 3
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Holger Freyther <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Holger Freyther <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>

Reply via email to