From 2979e43b37a657491eafa6445dcae99c312067a9 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 11 Oct 2018 13:28:07 +0200 Subject: [PATCH] reword PDCP log when dropping PDU --- lib/src/upper/pdcp_entity.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/upper/pdcp_entity.cc b/lib/src/upper/pdcp_entity.cc index 9d0300820..c26c6b9f0 100644 --- a/lib/src/upper/pdcp_entity.cc +++ b/lib/src/upper/pdcp_entity.cc @@ -204,7 +204,7 @@ void pdcp_entity::write_pdu(byte_buffer_t *pdu) } else { // Handle SRB messages if (cfg.is_control) { - uint32_t sn; + uint32_t sn = 0; if (do_encryption) { cipher_decrypt(&(pdu->msg[sn_len_bytes]), rx_count, @@ -218,7 +218,7 @@ void pdcp_entity::write_pdu(byte_buffer_t *pdu) rx_count, pdu->N_bytes - 4, &(pdu->msg[pdu->N_bytes - 4]))) { - log->error_hex(pdu->msg, pdu->N_bytes, "RX %s PDU SN: %d (Dropping PDU)", rrc->get_rb_name(lcid).c_str(), sn); + log->error_hex(pdu->msg, pdu->N_bytes, "%s Dropping PDU", rrc->get_rb_name(lcid).c_str()); goto exit; } }