connection: log payload size
This commit is contained in:
parent
de533f5871
commit
5ae79994ec
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue