lib,rlc_am_nr: fix state debugging info logging. Also log current TX/RX window size

master
Pedro Alvarez 3 years ago
parent 0ada2adac7
commit a15b4c039e

@ -1001,9 +1001,10 @@ bool rlc_am_nr_tx::inside_tx_window(uint32_t sn) const
*/ */
void rlc_am_nr_tx::debug_state() 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", RlcDebug("TX window state: SDUs %d", tx_window->size());
st.tx_next, 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_ack,
st.tx_next,
st.poll_sn, st.poll_sn,
st.pdu_without_poll, st.pdu_without_poll,
st.byte_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 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", 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,
st.rx_next_status_trigger, st.rx_next_status_trigger,

Loading…
Cancel
Save