aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/scheduler.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-10-23 16:26:18 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-10-24 14:00:36 +0200
commit84d4397ca1f1dab98712fc14a6f4b180a0561f94 (patch)
treece45999c1d24ef0bc779c7fa6d62fcef68131e05 /src/common/scheduler.c
parent34018dd4c9a192d7a9b8568ed41d4ed9a35bf0f2 (diff)
Diffstat (limited to 'src/common/scheduler.c')
-rw-r--r--src/common/scheduler.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 65ece7ff..806d5973 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -25,6 +25,7 @@
#include <errno.h>
#include <stdint.h>
#include <ctype.h>
+#include <inttypes.h>
#include <osmocom/core/msgb.h>
#include <osmocom/core/talloc.h>
@@ -369,6 +370,7 @@ int _sched_compose_ph_data_ind(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn,
if (l2_len)
memcpy(msg->l2h, l2, l2_len);
+ LOGP(DMEAS, LOGL_INFO, "PESPIN: _sched_compose_ph_data_ind (--) fn=%" PRIu32 " lost_frames=%" PRIu8 "\n", fn, l1ts->chan_state[chan].lost_frames);
if (L1SAP_IS_LINK_SACCH(trx_chan_desc[chan].link_id))
l1ts->chan_state[chan].lost_frames = 0;
@@ -399,6 +401,8 @@ int _sched_compose_tch_ind(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn,
if (tch_len)
memcpy(msg->l2h, tch, tch_len);
+ LOGP(DMEAS, LOGL_INFO, "PESPIN: _sched_compose_tch_ind (--) fn=%" PRIu32 " lost_frames=%" PRIu8 "\n", fn, l1ts->chan_state[chan].lost_frames);
+
if (l1ts->chan_state[chan].lost_frames)
l1ts->chan_state[chan].lost_frames--;
@@ -463,7 +467,7 @@ int trx_sched_tch_req(struct l1sched_trx *l1t, struct osmo_phsap_prim *l1sap)
}
-/*
+/*
* ready-to-send indication (to upper layer)
*/