commit | f15c276382a10ae6634694ed0cde06fdea0606cb | [log] [tgz] |
---|---|---|
author | Daniel Willmann <daniel@totalueberwachung.de> | Mon Jan 11 13:43:07 2010 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Thu Jan 14 21:52:26 2010 +0100 |
tree | 922eca6cbc3f848268c97d3d0008be12726a2db7 | |
parent | 06770617570340bd171be7e067d77c3e07b2c787 [diff] [blame] |
[vty_interface.c]: Warn if no BTS could be allocated
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c index 2654447..76598d3 100644 --- a/openbsc/src/vty_interface.c +++ b/openbsc/src/vty_interface.c
@@ -1324,8 +1324,11 @@ } 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;