diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-01 19:03:30 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-01 19:03:30 +0200 |
commit | 18d0818710eacbea8d89b62b751d28e7e0204ff3 (patch) | |
tree | 5458209dbce2c73bbc207668f7aaa4a4763d2c01 | |
parent | 288d0c04c8aa51ca9cdeb8a6922fdc2b96712b07 (diff) |
make it clear why we terminate
-rw-r--r-- | src/common/abis.c | 5 | ||||
-rw-r--r-- | src/common/bts.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/common/abis.c b/src/common/abis.c index f9063e78..9b412bff 100644 --- a/src/common/abis.c +++ b/src/common/abis.c @@ -525,7 +525,8 @@ void abis_close(struct ipabis_link *link) bts_shutdown(link->bts, "Abis close / OML"); else if (link->trx) bts_shutdown(link->trx->bts, "Abis close / RSL"); - else + else { + LOGP(DABIS, LOGL_FATAL, "Unable to connect to BSC\n"); exit(43); + } } - 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) |