diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2019-06-30 16:04:22 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2019-06-30 17:28:06 +0700 |
commit | c89047d8bc916ea2417b3867014c17f397b66737 (patch) | |
tree | 8a31ada844e0193828a6bf576166c21b81b18ca1 /src/host/trxcon/sched_lchan_xcch.c | |
parent | 696fe71ac1a9b63a8e6f20e5808f9fcd58f34ebf (diff) |
trxcon/scheduler: enrich GSM 05.03 encoding error messages
Change-Id: I35a7c5df4fc0ed2195ba721f92812874011459d9
Diffstat (limited to 'src/host/trxcon/sched_lchan_xcch.c')
-rw-r--r-- | src/host/trxcon/sched_lchan_xcch.c | 4 |
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); |