aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-08-29 11:52:03 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-08-29 11:52:03 +0200
commit05c076ae9d1cd4c910c1391004027a24acdefc4e (patch)
tree9f74da826d2068852f11fa25fd91481a116589f0
parent92f864759cbc80108cb8c91607e15da5aa4fa18a (diff)
paging: Write log messages when the BTS has not been paged
-rw-r--r--openbsc/src/libbsc/paging.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/openbsc/src/libbsc/paging.c b/openbsc/src/libbsc/paging.c
index 2eb2ef636..6ce17f896 100644
--- a/openbsc/src/libbsc/paging.c
+++ b/openbsc/src/libbsc/paging.c
@@ -304,12 +304,22 @@ int paging_request_bts(struct gsm_bts *bts, struct gsm_subscriber *subscr,
int rc;
/* not the right network */
- if (bts->network_code != subscr->mnc || bts->country_code != subscr->mcc)
- return 0;;
+ if (bts->network_code != subscr->mnc || bts->country_code != subscr->mcc) {
+ LOGP(DPAG, LOGL_DEBUG,
+ "BTS(%d) is not of the right network mnc(%d/%d) mcc(%d/%d)\n",
+ bts->nr,
+ bts->network_code, subscr->mnc,
+ bts->country_code, subscr->mcc);
+ return 0;
+ }
/* skip all currently inactive TRX */
- if (!trx_is_usable(bts->c0))
+ if (!trx_is_usable(bts->c0)) {
+ LOGP(DPAG, LOGL_DEBUG,
+ "BTS(%d) is not usable.\n",
+ bts->nr);
return 0;
+ }
/* maybe it is the first time we use it */
paging_init_if_needed(bts);