summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-26 22:49:12 +0200
committerHarald Welte <laforge@gnumonks.org>2016-09-27 05:00:18 +0000
commitdab3e34d0b26dfaba6ea926143560b72cefc413a (patch)
tree8048a32951d42d1bab383b578c4265f8dc9e4048
parent89d20b60efd408d79328869f97a8103c776bf0ef (diff)
log VTY telnet bind only once
After libosmocore 55dc2edc89c1a85187ef8aafc09f7d922383231f which outputs 'telnet at <ip> <port>' from telnet_init_dynif(), there's no need to log the telnet VTY bind here anymore. Change-Id: I97a730b28759df1d549a5049f47a3da1c16a3447
-rw-r--r--openbsc/src/gprs/gb_proxy_main.c2
-rw-r--r--openbsc/src/gprs/gtphub_main.c2
-rw-r--r--openbsc/src/gprs/sgsn_main.c2
-rw-r--r--openbsc/src/libbsc/bsc_init.c2
-rw-r--r--openbsc/src/osmo-bsc_mgcp/mgcp_main.c2
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat.c2
6 files changed, 0 insertions, 12 deletions
diff --git a/openbsc/src/gprs/gb_proxy_main.c b/openbsc/src/gprs/gb_proxy_main.c
index 0c3cfbec4..2ddfca7c5 100644
--- a/openbsc/src/gprs/gb_proxy_main.c
+++ b/openbsc/src/gprs/gb_proxy_main.c
@@ -271,8 +271,6 @@ int main(int argc, char **argv)
}
/* start telnet after reading config for vty_get_bind_addr() */
- LOGP(DGPRS, LOGL_NOTICE, "VTY at %s %d\n",
- vty_get_bind_addr(), OSMO_VTY_PORT_GBPROXY);
rc = telnet_init_dynif(tall_bsc_ctx, &dummy_network,
vty_get_bind_addr(), OSMO_VTY_PORT_GBPROXY);
if (rc < 0)
diff --git a/openbsc/src/gprs/gtphub_main.c b/openbsc/src/gprs/gtphub_main.c
index 89582b1d5..1e20a6342 100644
--- a/openbsc/src/gprs/gtphub_main.c
+++ b/openbsc/src/gprs/gtphub_main.c
@@ -325,8 +325,6 @@ int main(int argc, char **argv)
}
/* start telnet after reading config for vty_get_bind_addr() */
- LOGP(DGTPHUB, LOGL_NOTICE, "VTY at %s %d\n",
- vty_get_bind_addr(), OSMO_VTY_PORT_GTPHUB);
rc = telnet_init_dynif(osmo_gtphub_ctx, 0, vty_get_bind_addr(),
OSMO_VTY_PORT_GTPHUB);
if (rc < 0)
diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c
index fb5b6d585..93848f5e2 100644
--- a/openbsc/src/gprs/sgsn_main.c
+++ b/openbsc/src/gprs/sgsn_main.c
@@ -382,8 +382,6 @@ int main(int argc, char **argv)
}
/* start telnet after reading config for vty_get_bind_addr() */
- LOGP(DGPRS, LOGL_NOTICE, "VTY at %s %d\n",
- vty_get_bind_addr(), OSMO_VTY_PORT_SGSN);
rc = telnet_init_dynif(tall_bsc_ctx, &dummy_network,
vty_get_bind_addr(), OSMO_VTY_PORT_SGSN);
if (rc < 0)
diff --git a/openbsc/src/libbsc/bsc_init.c b/openbsc/src/libbsc/bsc_init.c
index 06f412119..c38bca1ce 100644
--- a/openbsc/src/libbsc/bsc_init.c
+++ b/openbsc/src/libbsc/bsc_init.c
@@ -491,8 +491,6 @@ int bsc_bootstrap_network(int (*mncc_recv)(struct gsm_network *, struct msgb *),
}
/* start telnet after reading config for vty_get_bind_addr() */
- LOGP(DNM, LOGL_NOTICE, "VTY at %s %d\n",
- vty_get_bind_addr(), OSMO_VTY_PORT_NITB_BSC);
rc = telnet_init_dynif(tall_bsc_ctx, bsc_gsmnet, vty_get_bind_addr(),
OSMO_VTY_PORT_NITB_BSC);
if (rc < 0)
diff --git a/openbsc/src/osmo-bsc_mgcp/mgcp_main.c b/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
index e226b02ad..ac55e2588 100644
--- a/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
+++ b/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
@@ -233,8 +233,6 @@ int main(int argc, char **argv)
return rc;
/* start telnet after reading config for vty_get_bind_addr() */
- LOGP(DMGCP, LOGL_NOTICE, "VTY at %s %d\n",
- vty_get_bind_addr(), OSMO_VTY_PORT_BSC_MGCP);
rc = telnet_init_dynif(tall_bsc_ctx, &dummy_network,
vty_get_bind_addr(), OSMO_VTY_PORT_BSC_MGCP);
if (rc < 0)
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index f20b2486f..57cc8b319 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -1639,8 +1639,6 @@ int main(int argc, char **argv)
}
/* start telnet after reading config for vty_get_bind_addr() */
- LOGP(DNAT, LOGL_NOTICE, "VTY at %s %d\n",
- vty_get_bind_addr(), OSMO_VTY_PORT_BSC_NAT);
if (telnet_init_dynif(tall_bsc_ctx, NULL, vty_get_bind_addr(),
OSMO_VTY_PORT_BSC_NAT)) {
fprintf(stderr, "Creating VTY telnet line failed\n");