aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-03-21 21:27:04 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-03-28 10:09:11 +0000
commit1d802e2635f2f281815f767be62124d9499000f6 (patch)
treee93e27a7e8050ebac507b8e09d0326f0b0edd99a
parent4eaefc222229edd9bacffa5abe8486f192b94d46 (diff)
libmsc/sgs_vty.c: don't print SGs socket error twice
Because sgs_server_open() already does this. Change-Id: Ifea308645c7829691dbcf53e4f59841090119006
-rw-r--r--src/libmsc/sgs_vty.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libmsc/sgs_vty.c b/src/libmsc/sgs_vty.c
index 8c94301..8ba5a79 100644
--- a/src/libmsc/sgs_vty.c
+++ b/src/libmsc/sgs_vty.c
@@ -57,10 +57,8 @@ DEFUN(cfg_sgs_local_ip, cfg_sgs_local_ip_cmd,
osmo_stream_srv_link_set_addr(sgs->srv_link, sgs->cfg.local_addr);
rc = sgs_server_open(sgs);
- if (rc < 0) {
- vty_out(vty, "%% SGs socket cannot be opened: %s%s", strerror(errno), VTY_NEWLINE);
+ if (rc < 0)
return CMD_WARNING;
- }
return CMD_SUCCESS;
}
@@ -77,10 +75,8 @@ DEFUN(cfg_sgs_local_port, cfg_sgs_local_port_cmd,
osmo_stream_srv_link_set_port(sgs->srv_link, sgs->cfg.local_port);
rc = sgs_server_open(sgs);
- if (rc < 0) {
- vty_out(vty, "%% SGs socket cannot be opened: %s%s", strerror(errno), VTY_NEWLINE);
+ if (rc < 0)
return CMD_WARNING;
- }
return CMD_SUCCESS;
}