connection: log payload size

This commit is contained in:
Thomas Kolb 2025-02-22 16:16:53 +01:00
commit 5ae79994ec

View file

@ -498,10 +498,11 @@ size_t connection_encode_next_packet(connection_ctx_t *ctx, uint8_t *buf, size_t
header.tx_request = (ctx->next_packet_index == (packet_queue_get_used_space(&ctx->packet_queue) - 1));
// encode the header
LOG(LVL_DEBUG, "Encoding packet with rx_seq_nr %u, tx_seq_nr %u, tx_request = (%u == %u -> %d).", header.rx_seq_nr, header.tx_seq_nr,
LOG(LVL_DEBUG, "Encoding packet with rx_seq_nr %u, tx_seq_nr %u, tx_request = (%u == %u -> %d), %zu bytes payload.", header.rx_seq_nr, header.tx_seq_nr,
ctx->next_packet_index,
packet_queue_get_used_space(&ctx->packet_queue) - 1,
header.tx_request);
header.tx_request,
entry->data_len);
size_t packet_size = layer2_encode_packet(&header, entry->data, entry->data_len, buf, buf_len);
if(packet_size == 0) {