trxcon/l1gprs: print dropped prims in l1sched_reset_lchan()

Change-Id: Iaa11b5cee16dc43ef01c38be756864c2b3b57835
This commit is contained in:
Vadim Yanitskiy 2024-02-01 23:59:30 +07:00
parent 57ef3dea1b
commit 047d66da9f
1 changed files with 6 additions and 1 deletions

View File

@ -525,8 +525,13 @@ static void l1sched_reset_lchan(struct l1sched_lchan_state *lchan)
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, "Dropping Tx prim (fn=%u): %s\n",
prim->prim->data_req.frame_nr, msgb_hexdump_l2(msg));
msgb_free(msg);
}
/* Channel specific stuff */
if (L1SCHED_CHAN_IS_TCH(lchan->type)) {