summaryrefslogtreecommitdiffstats
path: root/src
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
parent696fe71ac1a9b63a8e6f20e5808f9fcd58f34ebf (diff)
trxcon/scheduler: enrich GSM 05.03 encoding error messages
Diffstat (limited to 'src')
-rw-r--r--src/host/trxcon/sched_lchan_pdtch.c4
-rw-r--r--src/host/trxcon/sched_lchan_rach.c6
-rw-r--r--src/host/trxcon/sched_lchan_tchf.c4
-rw-r--r--src/host/trxcon/sched_lchan_tchh.c4
-rw-r--r--src/host/trxcon/sched_lchan_xcch.c4
5 files changed, 16 insertions, 6 deletions
diff --git a/src/host/trxcon/sched_lchan_pdtch.c b/src/host/trxcon/sched_lchan_pdtch.c
index 845ef64..ad021a9 100644
--- a/src/host/trxcon/sched_lchan_pdtch.c
+++ b/src/host/trxcon/sched_lchan_pdtch.c
@@ -146,7 +146,9 @@ int tx_pdtch_fn(struct trx_instance *trx, struct trx_ts *ts,
rc = gsm0503_pdtch_encode(buffer, lchan->prim->payload,
lchan->prim->payload_len);
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);
diff --git a/src/host/trxcon/sched_lchan_rach.c b/src/host/trxcon/sched_lchan_rach.c
index e96a0e6..5d1f3ab 100644
--- a/src/host/trxcon/sched_lchan_rach.c
+++ b/src/host/trxcon/sched_lchan_rach.c
@@ -108,7 +108,8 @@ int tx_rach_fn(struct trx_instance *trx, struct trx_ts *ts,
/* Encode extended (11-bit) payload */
rc = gsm0503_rach_ext_encode(payload, ext_req->ra11, trx->bsic, true);
if (rc) {
- LOGP(DSCHD, LOGL_ERROR, "Could not encode extended RACH burst\n");
+ LOGP(DSCHD, LOGL_ERROR, "Could not encode extended RACH burst "
+ "(ra=%u bsic=%u)\n", ext_req->ra11, trx->bsic);
/* Forget this primitive */
sched_prim_drop(lchan);
@@ -125,7 +126,8 @@ int tx_rach_fn(struct trx_instance *trx, struct trx_ts *ts,
/* Encode regular (8-bit) payload */
rc = gsm0503_rach_ext_encode(payload, req->ra, trx->bsic, false);
if (rc) {
- LOGP(DSCHD, LOGL_ERROR, "Could not encode RACH burst\n");
+ LOGP(DSCHD, LOGL_ERROR, "Could not encode RACH burst "
+ "(ra=%u bsic=%u)\n", req->ra, trx->bsic);
/* Forget this primitive */
sched_prim_drop(lchan);
diff --git a/src/host/trxcon/sched_lchan_tchf.c b/src/host/trxcon/sched_lchan_tchf.c
index cec7daf..f2ecdcc 100644
--- a/src/host/trxcon/sched_lchan_tchf.c
+++ b/src/host/trxcon/sched_lchan_tchf.c
@@ -239,7 +239,9 @@ int tx_tchf_fn(struct trx_instance *trx, struct trx_ts *ts,
/* Encode payload */
rc = gsm0503_tch_fr_encode(buffer, lchan->prim->payload, l2_len, 1);
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);
diff --git a/src/host/trxcon/sched_lchan_tchh.c b/src/host/trxcon/sched_lchan_tchh.c
index 172f54b..0201ee3 100644
--- a/src/host/trxcon/sched_lchan_tchh.c
+++ b/src/host/trxcon/sched_lchan_tchh.c
@@ -445,7 +445,9 @@ int tx_tchh_fn(struct trx_instance *trx, struct trx_ts *ts,
/* Encode the payload */
rc = gsm0503_tch_hr_encode(buffer, lchan->prim->payload, l2_len);
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);
diff --git a/src/host/trxcon/sched_lchan_xcch.c b/src/host/trxcon/sched_lchan_xcch.c
index 2d2b1d9..196f949 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);