fixeria submitted this change.

View Change


Approvals: laforge: Looks good to me, but someone else must approve pespin: Looks good to me, approved Jenkins Builder: Verified
trxcon/l1gprs: print dropped prims in l1sched_reset_lchan()

Change-Id: Iaa11b5cee16dc43ef01c38be756864c2b3b57835
---
M src/host/trxcon/src/sched_trx.c
1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/host/trxcon/src/sched_trx.c b/src/host/trxcon/src/sched_trx.c
index d07a579..f412400 100644
--- a/src/host/trxcon/src/sched_trx.c
+++ b/src/host/trxcon/src/sched_trx.c
@@ -525,8 +525,13 @@
lchan->tx_bursts = NULL;

/* Flush the queue of pending Tx prims */
- while ((msg = msgb_dequeue(&lchan->tx_prims)) != NULL)
+ while ((msg = msgb_dequeue(&lchan->tx_prims)) != NULL) {
+ const struct l1sched_prim *prim = l1sched_prim_from_msgb(msg);
+
+ LOGP_LCHANC(lchan, LOGL_NOTICE, "%s(): dropping Tx prim (fn=%u): %s\n",
+ __func__, prim->data_req.frame_nr, msgb_hexdump_l2(msg));
msgb_free(msg);
+ }

/* Channel specific stuff */
if (L1SCHED_CHAN_IS_TCH(lchan->type)) {

To view, visit change 35766. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Iaa11b5cee16dc43ef01c38be756864c2b3b57835
Gerrit-Change-Number: 35766
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: pespin <pespin@sysmocom.de>
Gerrit-MessageType: merged