mux: improve logging during SDU allocation

master
Andre Puschmann 6 years ago
parent a4dab1081e
commit 69e948bd5e

@ -334,16 +334,17 @@ bool mux::allocate_sdu(uint32_t lcid, srslte::sch_pdu* pdu_msg, int max_sdu_sz)
pdu_msg->del_subh(); pdu_msg->del_subh();
} }
} else { } 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, buffer_state,
sdu_len, sdu_len,
sdu_space, sdu_space,
pdu_msg->rem_size()); pdu_msg->rem_size());
} }
} else { } else {
Warning("SDU: rlc_buffer=%d, allocated=%d/%d, remaining=%d\n", Warning("Remaining SDU len too low (%d<%d) max_sdu_sz=%d, sdu_space=%d, remaining=%d\n",
buffer_state,
sdu_len, sdu_len,
MIN_RLC_SDU_LEN,
max_sdu_sz,
sdu_space, sdu_space,
pdu_msg->rem_size()); pdu_msg->rem_size());
} }

Loading…
Cancel
Save