From dc841ab02955c6dc41182cf1356e9af01503bb1d Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Mon, 11 Nov 2019 11:09:36 +0100 Subject: [PATCH] printf in rlc_am --- lib/src/upper/rlc_am_lte.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/src/upper/rlc_am_lte.cc b/lib/src/upper/rlc_am_lte.cc index ee5d1f694..246f2331a 100644 --- a/lib/src/upper/rlc_am_lte.cc +++ b/lib/src/upper/rlc_am_lte.cc @@ -722,8 +722,11 @@ int rlc_am_lte::rlc_am_lte_tx::build_segment(uint8_t* payload, uint32_t nof_byte if (pdu_len > static_cast(nof_bytes)) { log->error("%s Retx PDU segment length error. Available: %d, Used: %d\n", RB_NAME, nof_bytes, pdu_len); - log->debug("%s Retx PDU segment length error. Header len: %ld, Payload len: %d, N_li: %d\n", - RB_NAME, (ptr-payload), len, new_header.N_li); + log->debug("%s Retx PDU segment length error. Header len: %" PRIu64 ", Payload len: %d, N_li: %d\n", + RB_NAME, + (ptr - payload), + len, + new_header.N_li); } log->info_hex(payload, pdu_len, "%s Retx PDU segment of SN=%d (%d B), SO: %d, N_li: %d\n", @@ -1424,7 +1427,10 @@ void rlc_am_lte::rlc_am_lte_rx::reassemble_rx_sdus() #endif } } else { - log->error("Cannot read %d bytes from rx_window. vr_r=%d, msg-buffer=%ld bytes\n", len, vr_r, (rx_window[vr_r].buf->msg - rx_window[vr_r].buf->buffer)); + log->error("Cannot read %d bytes from rx_window. vr_r=%d, msg-buffer=%" PRIu64 " bytes\n", + len, + vr_r, + (rx_window[vr_r].buf->msg - rx_window[vr_r].buf->buffer)); rx_sdu.reset(); goto exit; }