diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-03-09 14:50:14 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-03-12 07:40:11 +0000 |
commit | c1f31c46ac1eb80427486c5920052195ca3301a3 (patch) | |
tree | ae8282b5919e86ace38b7d2378f863a01207bb97 /src/osmo-bts-oc2g | |
parent | 91cc780b40aaac721650b672cca9caf7ee291f3a (diff) |
Improve DATA.ind logging
pdch object is obtained prior in the stack so it is available for
logging.
Change-Id: If51f7bdbd626a44c7b8e182a3460dad49fda6ec3
Diffstat (limited to 'src/osmo-bts-oc2g')
-rw-r--r-- | src/osmo-bts-oc2g/oc2g_l1_if.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/osmo-bts-oc2g/oc2g_l1_if.c b/src/osmo-bts-oc2g/oc2g_l1_if.c index 5d2ce691..101bd560 100644 --- a/src/osmo-bts-oc2g/oc2g_l1_if.c +++ b/src/osmo-bts-oc2g/oc2g_l1_if.c @@ -194,11 +194,13 @@ static int handle_ph_data_ind(struct oc2gl1_hdl *fl1h, { int rc = 0; struct gprs_rlcmac_bts *bts; + struct gprs_rlcmac_pdch *pdch; struct pcu_l1_meas meas = {0}; uint8_t *data; uint8_t data_len; - DEBUGP(DL1IF, "Rx PH-DATA.ind %s (hL2 %08x): %s\n", + DEBUGP(DL1IF, "(trx=%" PRIu8 ",ts=%u) FN=%u Rx PH-DATA.ind %s (hL2 %08x): %s\n", + fl1h->trx_no, data_ind->u8Tn, data_ind->u32Fn, get_value_string(oc2gbts_l1sapi_names, data_ind->sapi), data_ind->hLayer2, osmo_hexdump(data_ind->msgUnitParam.u8Buffer, @@ -229,12 +231,14 @@ static int handle_ph_data_ind(struct oc2gl1_hdl *fl1h, data = NULL; data_len = 0; } - pcu_rx_data_ind_pdtch(bts, fl1h->trx_no, data_ind->u8Tn, data, - data_len, data_ind->u32Fn, &meas); + pdch = &bts->trx[fl1h->trx_no].pdch[data_ind->u8Tn]; + pcu_rx_data_ind_pdtch(bts, pdch, data, data_len, data_ind->u32Fn, &meas); break; default: - LOGP(DL1IF, LOGL_NOTICE, "Rx PH-DATA.ind for unknown L1 SAPI %s\n", - get_value_string(oc2gbts_l1sapi_names, data_ind->sapi)); + LOGP(DL1IF, LOGL_NOTICE, + "(trx=%" PRIu8 ",ts=%u) FN=%u Rx PH-DATA.ind for unknown L1 SAPI %s\n", + fl1h->trx_no, data_ind->u8Tn, data_ind->u32Fn, + get_value_string(oc2gbts_l1sapi_names, data_ind->sapi)); break; } |