From bc3be73364a0f8112d7df89d2e7f7ee0c67eca72 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 20 May 2021 16:30:24 +0200 Subject: [PATCH] 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 --- lib/src/upper/rlc_am_lte.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/upper/rlc_am_lte.cc b/lib/src/upper/rlc_am_lte.cc index 59299162a..4e74c3577 100644 --- a/lib/src/upper/rlc_am_lte.cc +++ b/lib/src/upper/rlc_am_lte.cc @@ -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();