From aba0ba9ad8b7df054a882ab87471b6014b7ae89f Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 6 Sep 2021 12:22:18 +0200 Subject: [PATCH] mac_sch_pdu_nr: fix newline in logs --- lib/src/mac/mac_sch_pdu_nr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/mac/mac_sch_pdu_nr.cc b/lib/src/mac/mac_sch_pdu_nr.cc index 432f9e1ea..268e8ebd8 100644 --- a/lib/src/mac/mac_sch_pdu_nr.cc +++ b/lib/src/mac/mac_sch_pdu_nr.cc @@ -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; }