aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/bts.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-01 19:03:30 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-01 19:03:30 +0200
commit18d0818710eacbea8d89b62b751d28e7e0204ff3 (patch)
tree5458209dbce2c73bbc207668f7aaa4a4763d2c01 /src/common/bts.c
parent288d0c04c8aa51ca9cdeb8a6922fdc2b96712b07 (diff)
make it clear why we terminate
Diffstat (limited to 'src/common/bts.c')
-rw-r--r--src/common/bts.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/bts.c b/src/common/bts.c
index 22008572..35999294 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -21,6 +21,8 @@
*/
#include <errno.h>
+#include <unistd.h>
+#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -62,6 +64,7 @@ int bts_init(struct gsm_bts *bts)
static void shutdown_timer_cb(void *data)
{
+ fprintf(stderr, "Shutdown timer expired\n");
exit(42);
}
@@ -73,7 +76,7 @@ void bts_shutdown(struct gsm_bts *bts, const char *reason)
{
struct gsm_bts_trx *trx;
- LOGP(DOML, LOGL_INFO, "Shutting down BTS %u, Reason %s\n",
+ LOGP(DOML, LOGL_NOTICE, "Shutting down BTS %u, Reason %s\n",
bts->nr, reason);
llist_for_each_entry(trx, &bts->trx_list, list)