aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_init.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-12-16 11:57:48 +0100
committerHarald Welte <laforge@netfilter.org>2009-12-16 11:57:48 +0100
commit152b6261f88ac085cd96b63374ad5847ac7b3ce2 (patch)
treec766c27296b44b8b12eba6a8211f5c186a907a1e /openbsc/src/bsc_init.c
parent7f2d25b0956f0e9fb6cdf0056d9371a00cc239e4 (diff)
[system_information] Print more debugging about what's going on
Diffstat (limited to 'openbsc/src/bsc_init.c')
-rw-r--r--openbsc/src/bsc_init.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c
index ef68ef936..aed0dad42 100644
--- a/openbsc/src/bsc_init.c
+++ b/openbsc/src/bsc_init.c
@@ -684,25 +684,31 @@ static int set_system_infos(struct gsm_bts_trx *trx)
}
#ifdef GPRS
rc = gsm_generate_si(si_tmp, trx->bts, RSL_SYSTEM_INFO_13);
- if (rc < 0)
+ if (rc < 0) {
+ i = 13;
goto err_out;
+ }
rsl_bcch_info(trx, RSL_SYSTEM_INFO_13, si_tmp, rc);
#endif
rc = gsm_generate_si(si_tmp, trx->bts, 5);
- if (rc < 0)
+ if (rc < 0) {
+ i = 5;
goto err_out;
+ }
rsl_sacch_filling(trx, RSL_SYSTEM_INFO_5, si_tmp, rc);
rc = gsm_generate_si(si_tmp, trx->bts, 6);
- if (rc < 0)
+ if (rc < 0) {
+ i = 6;
goto err_out;
+ }
rsl_sacch_filling(trx, RSL_SYSTEM_INFO_6, si_tmp, rc);
return 0;
err_out:
- fprintf(stderr, "Cannot generate SI for BTS %u, most likely "
+ fprintf(stderr, "Cannot generate SI %u for BTS %u, most likely "
"a problem with neighbor cell list generation\n",
- trx->bts->nr);
+ i, trx->bts->nr);
return rc;
}