reword PDCP log when dropping PDU

This commit is contained in:
Andre Puschmann 2018-10-11 13:28:07 +02:00
parent 8559af55c5
commit 2979e43b37
1 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ void pdcp_entity::write_pdu(byte_buffer_t *pdu)
} else { } else {
// Handle SRB messages // Handle SRB messages
if (cfg.is_control) { if (cfg.is_control) {
uint32_t sn; uint32_t sn = 0;
if (do_encryption) { if (do_encryption) {
cipher_decrypt(&(pdu->msg[sn_len_bytes]), cipher_decrypt(&(pdu->msg[sn_len_bytes]),
rx_count, rx_count,
@ -218,7 +218,7 @@ void pdcp_entity::write_pdu(byte_buffer_t *pdu)
rx_count, rx_count,
pdu->N_bytes - 4, pdu->N_bytes - 4,
&(pdu->msg[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; goto exit;
} }
} }