diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-07-20 16:21:41 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-07-20 16:41:15 +0200 |
commit | 20278252b5dfebf141b38e39428f58993a6ad654 (patch) | |
tree | 669996c5e3f6fa08e72665e7740aabaec17a6415 /src/common/scheduler.c | |
parent | e04e4d423d5ee6d71f3d50c877755dfcc8905fc4 (diff) |
scheduler: Log error on fn jump
Change-Id: I28f01e3f7fff6f1fb52a3c593a837f4f924bb2d9
Diffstat (limited to 'src/common/scheduler.c')
-rw-r--r-- | src/common/scheduler.c | 7 |
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 */ |