From f5a929e425f60652d9107678a13685442259002f Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 20 Jun 2019 15:07:58 +0200 Subject: [PATCH] pdcp: print length when processing incoming PDU --- lib/src/upper/pdcp_entity.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/src/upper/pdcp_entity.cc b/lib/src/upper/pdcp_entity.cc index 00dbb84d6..bd1485fd0 100644 --- a/lib/src/upper/pdcp_entity.cc +++ b/lib/src/upper/pdcp_entity.cc @@ -172,11 +172,16 @@ void pdcp_entity::enable_encryption() // RLC interface void pdcp_entity::write_pdu(unique_byte_buffer_t pdu) { - log->info_hex(pdu->msg, pdu->N_bytes, "RX %s PDU, do_integrity = %s, do_encryption = %s", - rrc->get_rb_name(lcid).c_str(), (do_integrity) ? "true" : "false", (do_encryption) ? "true" : "false"); + log->info_hex(pdu->msg, + pdu->N_bytes, + "RX %s PDU (%d B), do_integrity = %s, do_encryption = %s", + rrc->get_rb_name(lcid).c_str(), + pdu->N_bytes, + (do_integrity) ? "true" : "false", + (do_encryption) ? "true" : "false"); // Sanity check - if(pdu->N_bytes <= sn_len_bytes) { + if (pdu->N_bytes <= sn_len_bytes) { return; }