aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-07-20 16:21:41 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-07-20 16:41:15 +0200
commit20278252b5dfebf141b38e39428f58993a6ad654 (patch)
tree669996c5e3f6fa08e72665e7740aabaec17a6415
parente04e4d423d5ee6d71f3d50c877755dfcc8905fc4 (diff)
scheduler: Log error on fn jump
-rw-r--r--src/common/scheduler.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 69186fe0..38428103 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -870,10 +870,13 @@ int trx_sched_ul_burst(struct l1sched_trx *l1t, uint8_t tn, uint32_t current_fn,
/* start counting from last fn + 1, but only if not too many fn have
* been elapsed */
- if (elapsed < 10)
+ if (elapsed < 10) {
fn = (l1ts->mf_last_fn + 1) % GSM_HYPERFRAME;
- else
+ } else {
+ LOGPFN(DL1P, LOGL_NOTICE, current_fn,
+ "Too many contiguous elapsed fn, dropping %u\n", elapsed);
fn = current_fn;
+ }
while (42) {
/* get frame from multiframe */