From a15b4c039ecd7ebf8d20a7579b83b4fea3806cf5 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Thu, 24 Mar 2022 11:01:35 +0000 Subject: [PATCH] lib,rlc_am_nr: fix state debugging info logging. Also log current TX/RX window size --- lib/src/rlc/rlc_am_nr.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/rlc/rlc_am_nr.cc b/lib/src/rlc/rlc_am_nr.cc index 3ba720aa6..0b637ca1d 100644 --- a/lib/src/rlc/rlc_am_nr.cc +++ b/lib/src/rlc/rlc_am_nr.cc @@ -1001,9 +1001,10 @@ bool rlc_am_nr_tx::inside_tx_window(uint32_t sn) const */ void rlc_am_nr_tx::debug_state() const { - RlcDebug("TX entity state: Tx_Next %d, Rx_Next_Ack %d, POLL_SN %d, PDU_WITHOUT_POLL %d, BYTE_WITHOUT_POLL %d", - st.tx_next, + RlcDebug("TX window state: SDUs %d", tx_window->size()); + RlcDebug("TX entity state: Tx_Next_Ack=%d, Tx_Next=%d, POLL_SN=%d, PDU_WITHOUT_POLL=%d, BYTE_WITHOUT_POLL=%d", st.tx_next_ack, + st.tx_next, st.poll_sn, st.pdu_without_poll, st.byte_without_poll); @@ -1519,6 +1520,7 @@ bool rlc_am_nr_rx::have_all_segments_been_received( */ void rlc_am_nr_rx::debug_state() const { + RlcDebug("RX window state: SDUs %d", rx_window->size()); RlcDebug("RX entity state: Rx_Next=%d, Rx_Next_Status_Trigger=%d, Rx_Highest_Status=%d, Rx_Next_Highest=%d", st.rx_next, st.rx_next_status_trigger,