diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-07-07 18:57:43 +0700 |
---|---|---|
committer | laforge <laforge@gnumonks.org> | 2019-07-16 04:16:13 +0000 |
commit | af6f39025f1dad351e32b492ae0112a31d7b87bb (patch) | |
tree | 7e3e0e47f2fa598d04a2563e97da4dfa37777dfd /src/osmo-bts-trx/scheduler_trx.c | |
parent | 1ea7fd06098132ec709a6497484babea6c37e6e4 (diff) |
osmo-bts-trx/scheduler: rx_rach_fn(): enrich debug message
Change-Id: I1cb28a9d6c98993705b73937409276994f375dc0
Diffstat (limited to 'src/osmo-bts-trx/scheduler_trx.c')
-rw-r--r-- | src/osmo-bts-trx/scheduler_trx.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c index cd3dbf40..79e42e10 100644 --- a/src/osmo-bts-trx/scheduler_trx.c +++ b/src/osmo-bts-trx/scheduler_trx.c @@ -803,10 +803,16 @@ int rx_rach_fn(struct l1sched_trx *l1t, enum trx_chan_type chan, } LOGL1S(DL1P, LOGL_DEBUG, l1t, bi->tn, chan, bi->fn, - "Received RACH (%s; match=%.1f%%) toa=%d\n", + "Received%s RACH (%s): rssi=%d toa256=%d", + (chan != TRXC_RACH) ? " handover" : "", get_value_string(rach_synch_seq_names, synch_seq), - best_score * 100.0 / (127 * RACH_SYNCH_SEQ_LEN), - bi->toa256); + bi->rssi, bi->toa256); + if (bi->flags & TRX_BI_F_CI_CB) + LOGPC(DL1P, LOGL_DEBUG, " C/I=%d cB", bi->ci_cb); + else + LOGPC(DL1P, LOGL_DEBUG, " match=%.1f%%", + best_score * 100.0 / (127 * RACH_SYNCH_SEQ_LEN)); + LOGPC(DL1P, LOGL_DEBUG, "\n"); /* Compose a new L1SAP primitive */ memset(&l1sap, 0x00, sizeof(l1sap)); |