aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/scheduler.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-03-13 13:21:20 +0100
committerMax <msuraev@sysmocom.de>2017-04-28 08:47:21 +0000
commit322252d793961ab6db56ea2c22fa91f7c1001bc0 (patch)
tree05cbb8af3f15f80641b2b1d6ec8aa0bec55ea948 /src/common/scheduler.c
parentfce5b31b94702e61f036d646fce5ec10f67a43a3 (diff)
osmo-bts-trx: cosmetic log fix
Print actual value causing error and the check range. Change-Id: Ic36c0558cdbd1790c167f290a40007b42f5de65d
Diffstat (limited to 'src/common/scheduler.c')
-rw-r--r--src/common/scheduler.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 724fb5a7..27b7630b 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -305,11 +305,11 @@ free_msg:
goto wrong_type;
}
if (prim_fn > 100) {
- LOGP(DL1C, LOGL_NOTICE, "Prim for trx=%u ts=%u at fn=%u "
- "is out of range, or channel %s with type %s is "
- "already disabled. If this happens in conjunction "
- "with PCU, increase 'rts-advance' by 5. "
- "(current fn=%u)\n", l1t->trx->nr, tn,
+ LOGP(DL1C, LOGL_NOTICE, "Prim %u for trx=%u ts=%u at "
+ "fn=%u is out of range (100), or channel %s with "
+ "type %s is already disabled. If this happens in "
+ "conjunction with PCU, increase 'rts-advance' by 5."
+ " (current fn=%u)\n", prim_fn, l1t->trx->nr, tn,
l1sap->u.data.fn,
get_lchan_by_chan_nr(l1t->trx, chan_nr)->name,
get_value_string(trx_chan_type_names, chan), fn);
@@ -1609,10 +1609,12 @@ const ubit_t *_sched_dl_burst(struct l1sched_trx *l1t, uint8_t tn,
no_data:
/* in case of C0, we need a dummy burst to maintain RF power */
if (bits == NULL && l1t->trx == l1t->trx->bts->c0) {
-if (0) if (chan != TRXC_IDLE) // hack
- LOGP(DL1C, LOGL_DEBUG, "No burst data for %s fn=%u ts=%u "
- "burst=%d on C0, so filling with dummy burst\n",
- trx_chan_desc[chan].name, fn, tn, bid);
+#if 0
+ if (chan != TRXC_IDLE) // hack
+ LOGP(DL1C, LOGL_DEBUG, "No burst data for %s fn=%u ts=%u "
+ "burst=%d on C0, so filling with dummy burst\n",
+ trx_chan_desc[chan].name, fn, tn, bid);
+#endif
bits = (ubit_t *) dummy_burst;
}