From 69e948bd5e92adca778a6570fbec2e4113d150a2 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Tue, 25 Jun 2019 17:51:25 +0200 Subject: [PATCH] mux: improve logging during SDU allocation --- srsue/src/stack/mac/mux.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/srsue/src/stack/mac/mux.cc b/srsue/src/stack/mac/mux.cc index 37a3f1aab..5d4c3a1dd 100644 --- a/srsue/src/stack/mac/mux.cc +++ b/srsue/src/stack/mac/mux.cc @@ -334,16 +334,17 @@ bool mux::allocate_sdu(uint32_t lcid, srslte::sch_pdu* pdu_msg, int max_sdu_sz) pdu_msg->del_subh(); } } else { - Warning("SDU: rlc_buffer=%d, allocated=%d/%d, remaining=%d\n", + Warning("Couldn't add new MAC subheader (rlc_buffer=%d, allocated=%d/%d, remaining=%d)\n", buffer_state, sdu_len, sdu_space, pdu_msg->rem_size()); } } else { - Warning("SDU: rlc_buffer=%d, allocated=%d/%d, remaining=%d\n", - buffer_state, + Warning("Remaining SDU len too low (%d<%d) max_sdu_sz=%d, sdu_space=%d, remaining=%d\n", sdu_len, + MIN_RLC_SDU_LEN, + max_sdu_sz, sdu_space, pdu_msg->rem_size()); }