printf in rlc_am

master
Andre Puschmann 5 years ago
parent 6f72cbffab
commit dc841ab029

@ -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<int>(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;
}

Loading…
Cancel
Save