summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/sched_lchan_xcch.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-06-30 16:04:22 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-06-30 17:28:06 +0700
commitc89047d8bc916ea2417b3867014c17f397b66737 (patch)
tree8a31ada844e0193828a6bf576166c21b81b18ca1 /src/host/trxcon/sched_lchan_xcch.c
parent696fe71ac1a9b63a8e6f20e5808f9fcd58f34ebf (diff)
trxcon/scheduler: enrich GSM 05.03 encoding error messages
Diffstat (limited to 'src/host/trxcon/sched_lchan_xcch.c')
-rw-r--r--src/host/trxcon/sched_lchan_xcch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/host/trxcon/sched_lchan_xcch.c b/src/host/trxcon/sched_lchan_xcch.c
index 2d2b1d9f..196f949c 100644
--- a/src/host/trxcon/sched_lchan_xcch.c
+++ b/src/host/trxcon/sched_lchan_xcch.c
@@ -155,7 +155,9 @@ int tx_data_fn(struct trx_instance *trx, struct trx_ts *ts,
/* Encode payload */
rc = gsm0503_xcch_encode(buffer, lchan->prim->payload);
if (rc) {
- LOGP(DSCHD, LOGL_ERROR, "Failed to encode L2 payload\n");
+ LOGP(DSCHD, LOGL_ERROR, "Failed to encode L2 payload (len=%zu): %s\n",
+ lchan->prim->payload_len, osmo_hexdump(lchan->prim->payload,
+ lchan->prim->payload_len));
/* Forget this primitive */
sched_prim_drop(lchan);