From aba82097b6e042d6ae3728ca2daf045242d8479a Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Fri, 30 Sep 2016 03:12:44 +0200 Subject: [PATCH] log CTRL bind only once After libosmocore 38d232ee5d2ceb045d9ad6d3a23afcb4972523f7 which outputs 'CTRL at ' from ctrl_interface_setup_dynip(), there's no need to log the CTRL bind here anymore. Change-Id: I1a874efe365a1ecf8ec37b058215b95b9a635ec2 --- openbsc/src/gprs/sgsn_main.c | 2 -- openbsc/src/osmo-bsc/osmo_bsc_main.c | 2 -- openbsc/src/osmo-bsc_nat/bsc_nat.c | 2 -- openbsc/src/osmo-nitb/bsc_hack.c | 2 -- 4 files changed, 8 deletions(-) diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c index 93848f5e2..822c35930 100644 --- a/openbsc/src/gprs/sgsn_main.c +++ b/openbsc/src/gprs/sgsn_main.c @@ -389,8 +389,6 @@ int main(int argc, char **argv) /* start control interface after reading config for * ctrl_vty_get_bind_addr() */ - LOGP(DGPRS, LOGL_NOTICE, "CTRL at %s %d\n", - ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_SGSN); ctrl = sgsn_controlif_setup(NULL, ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_SGSN); if (!ctrl) { diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c index 2ee5fb44e..d3128e45e 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_main.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c @@ -229,8 +229,6 @@ int main(int argc, char **argv) /* start control interface after reading config for * ctrl_vty_get_bind_addr() */ - LOGP(DNM, LOGL_NOTICE, "CTRL at %s %d\n", - ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_NITB_BSC); bsc_gsmnet->ctrl = bsc_controlif_setup(bsc_gsmnet, ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_NITB_BSC); diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c index 57cc8b319..6ae8c0501 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_nat.c +++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c @@ -1669,8 +1669,6 @@ int main(int argc, char **argv) /* start control interface after reading config for * ctrl_vty_get_bind_addr() */ - LOGP(DNAT, LOGL_NOTICE, "CTRL at %s %d\n", - ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_BSC_NAT); nat->ctrl = bsc_nat_controlif_setup(nat, ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_BSC_NAT); if (!nat->ctrl) { diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c index 8e1ddaecd..28dbb6f90 100644 --- a/openbsc/src/osmo-nitb/bsc_hack.c +++ b/openbsc/src/osmo-nitb/bsc_hack.c @@ -313,8 +313,6 @@ int main(int argc, char **argv) /* start control interface after reading config for * ctrl_vty_get_bind_addr() */ - LOGP(DNM, LOGL_NOTICE, "CTRL at %s %d\n", - ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_NITB_BSC); bsc_gsmnet->ctrl = bsc_controlif_setup(bsc_gsmnet, ctrl_vty_get_bind_addr(), OSMO_CTRL_PORT_NITB_BSC);