aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface.c
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2010-01-11 13:43:07 +0100
committerHarald Welte <laforge@gnumonks.org>2010-01-14 21:52:26 +0100
commitf15c276382a10ae6634694ed0cde06fdea0606cb (patch)
tree922eca6cbc3f848268c97d3d0008be12726a2db7 /openbsc/src/vty_interface.c
parent06770617570340bd171be7e067d77c3e07b2c787 (diff)
[vty_interface.c]: Warn if no BTS could be allocated
Diffstat (limited to 'openbsc/src/vty_interface.c')
-rw-r--r--openbsc/src/vty_interface.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c
index 265444779..76598d377 100644
--- a/openbsc/src/vty_interface.c
+++ b/openbsc/src/vty_interface.c
@@ -1324,8 +1324,11 @@ DEFUN(cfg_bts,
} else
bts = gsm_bts_num(gsmnet, bts_nr);
- if (!bts)
+ if (!bts) {
+ vty_out(vty, "%% Unable to allocate BTS %u%s",
+ gsmnet->num_bts, VTY_NEWLINE);
return CMD_WARNING;
+ }
vty->index = bts;
vty->node = BTS_NODE;