From 9133135e12668ed25573728d9ad6844e7638943d Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 14 Dec 2020 11:43:46 +0100 Subject: [PATCH] rlc_tm: remove error from log when RLC TM PDU can't be sent RLC TM can't be segmented so it may happen that a PDU cannot be sent because the grant is too small. That is not an error and should only be logged in info. --- lib/src/upper/rlc_tm.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/upper/rlc_tm.cc b/lib/src/upper/rlc_tm.cc index 1f63c6bab..5b5de2976 100644 --- a/lib/src/upper/rlc_tm.cc +++ b/lib/src/upper/rlc_tm.cc @@ -132,8 +132,8 @@ int rlc_tm::read_pdu(uint8_t* payload, uint32_t nof_bytes) { uint32_t pdu_size = ul_queue.size_tail_bytes(); if (pdu_size > nof_bytes) { - log->error( - "TX %s PDU size larger than MAC opportunity (%d > %d)\n", rrc->get_rb_name(lcid).c_str(), pdu_size, nof_bytes); + log->info( + "%s Tx PDU size larger than MAC opportunity (%d > %d)\n", rrc->get_rb_name(lcid).c_str(), pdu_size, nof_bytes); return -1; } unique_byte_buffer_t buf; @@ -145,7 +145,7 @@ int rlc_tm::read_pdu(uint8_t* payload, uint32_t nof_bytes) buf->get_latency_us().count()); log->info_hex(payload, pdu_size, - "TX %s, %s PDU, queue size=%d, bytes=%d", + "%s Tx %s PDU, queue size=%d, bytes=%d", rrc->get_rb_name(lcid).c_str(), srslte::to_string(rlc_mode_t::tm).c_str(), ul_queue.size(),