lib,rlc_am_nr: added debug_window function

This commit is contained in:
Pedro Alvarez 2022-03-29 13:56:12 +01:00
parent d2d3c4140a
commit 6ff18272e0
2 changed files with 8 additions and 1 deletions

View File

@ -181,9 +181,10 @@ public:
rlc_am_nr_tx_state_t get_tx_state() { return st; } // This should only be used for testing.
uint32_t get_tx_window_utilization() { return tx_window->size(); } // This should only be used for testing.
// Debug Helper
// Debug Helpers
void debug_state() const;
void info_state() const;
void debug_window() const;
};
/****************************************************************************

View File

@ -1220,6 +1220,7 @@ void rlc_am_nr_tx::debug_state() const
st.pdu_without_poll,
st.byte_without_poll);
}
void rlc_am_nr_tx::info_state() const
{
RlcInfo("TX window state: SDUs %d", tx_window->size());
@ -1230,6 +1231,11 @@ void rlc_am_nr_tx::info_state() const
st.pdu_without_poll,
st.byte_without_poll);
}
void rlc_am_nr_tx::debug_window() const
{
RlcDebug("TX window state: Tx_Next_Ack=%d, Tx_Next=%d, SDUs=%d", st.tx_next_ack, st.tx_next, tx_window->size());
}
/****************************************************************************
* Rx subclass implementation
***************************************************************************/