mac_sch_pdu_nr: fix newline in logs

This commit is contained in:
Andre Puschmann 2021-09-06 12:22:18 +02:00
parent 54ab64327a
commit aba0ba9ad8
1 changed files with 2 additions and 2 deletions

View File

@ -359,7 +359,7 @@ int mac_sch_pdu_nr::unpack(const uint8_t* payload, const uint32_t& len)
while (offset < len) {
mac_sch_subpdu_nr sch_pdu(this);
if (sch_pdu.read_subheader(payload + offset) == SRSRAN_ERROR) {
logger.error("Malformed MAC PDU (len=%d, offset=%d)\n", len, offset);
logger.error("Malformed MAC PDU (len=%d, offset=%d)", len, offset);
return SRSRAN_ERROR;
}
offset += sch_pdu.get_total_length();
@ -372,7 +372,7 @@ int mac_sch_pdu_nr::unpack(const uint8_t* payload, const uint32_t& len)
subpdus.push_back(sch_pdu);
}
if (offset != len) {
logger.error("Malformed MAC PDU (len=%d, offset=%d)\n", len, offset);
logger.error("Malformed MAC PDU (len=%d, offset=%d)", len, offset);
return SRSRAN_ERROR;
}