diff options
author | Harald Welte <laforge@netfilter.org> | 2009-12-19 21:29:00 +0100 |
---|---|---|
committer | Harald Welte <laforge@netfilter.org> | 2009-12-19 21:29:00 +0100 |
commit | 50e7fec9b892c32655ce74431e45437669bffac6 (patch) | |
tree | e2fbed99b16d52b0dc4f728d300c26a757bb02ec /openbsc/src/bsc_init.c | |
parent | e2d0d5fa8c596cf22f266471995f96215b39fc9d (diff) |
system_information: DEBUGP() SI13/5/6 during startup
Diffstat (limited to 'openbsc/src/bsc_init.c')
-rw-r--r-- | openbsc/src/bsc_init.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c index 744eacb24..7065833bf 100644 --- a/openbsc/src/bsc_init.c +++ b/openbsc/src/bsc_init.c @@ -679,30 +679,30 @@ static int set_system_infos(struct gsm_bts_trx *trx) rc = gsm_generate_si(si_tmp, trx->bts, i); if (rc < 0) goto err_out; - DEBUGP(DRR, "SI%u: %s\n", i, hexdump(si_tmp, rc)); + DEBUGP(DRR, "SI%2u: %s\n", i, hexdump(si_tmp, rc)); rsl_bcch_info(trx, i, si_tmp, sizeof(si_tmp)); } } #ifdef GPRS + i = 13 rc = gsm_generate_si(si_tmp, trx->bts, RSL_SYSTEM_INFO_13); - if (rc < 0) { - i = 13; + if (rc < 0) goto err_out; - } + DEBUGP(DRR, "SI%2u: %s\n", i, hexdump(si_tmp, rc)); rsl_bcch_info(trx, RSL_SYSTEM_INFO_13, si_tmp, rc); #endif - rc = gsm_generate_si(si_tmp, trx->bts, 5); - if (rc < 0) { - i = 5; + i = 5; + rc = gsm_generate_si(si_tmp, trx->bts, RSL_SYSTEM_INFO_5); + if (rc < 0) goto err_out; - } + DEBUGP(DRR, "SI%2u: %s\n", i, hexdump(si_tmp, rc)); rsl_sacch_filling(trx, RSL_SYSTEM_INFO_5, si_tmp, rc); - rc = gsm_generate_si(si_tmp, trx->bts, 6); - if (rc < 0) { - i = 6; + i = 6; + rc = gsm_generate_si(si_tmp, trx->bts, RSL_SYSTEM_INFO_6); + if (rc < 0) goto err_out; - } + DEBUGP(DRR, "SI%2u: %s\n", i, hexdump(si_tmp, rc)); rsl_sacch_filling(trx, RSL_SYSTEM_INFO_6, si_tmp, rc); return 0; |