rlc_am_lte: replace simple sanitfy check with error log with expect

this should help debugging the situation when this happens by
aborting when STOP_ON_WARNING is enabled
This commit is contained in:
Andre Puschmann 2021-05-20 16:30:24 +02:00
parent 9501283c1c
commit bc3be73364
1 changed files with 2 additions and 2 deletions

View File

@ -1254,8 +1254,8 @@ void rlc_am_lte::rlc_am_lte_tx::handle_control_pdu(uint8_t* payload, uint32_t no
}
// Make sure vt_a points to valid SN
if (not tx_window.empty() && not tx_window.has_sn(vt_a)) {
logger.error("%s vt_a=%d points to invalid position in Tx window", RB_NAME, vt_a);
if (not tx_window.empty()) {
srsran_expect(tx_window.has_sn(vt_a), "%s vt_a=%d points to invalid position in Tx window", RB_NAME, vt_a);
}
debug_state();