commit | 580085f31f378fba217dfada8940f98dda31768b | [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 | 1c36947566c8a3309c9c9ee4db04e0a025ec6628 [diff] |
[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;