Skip to content

Commit 49064f5

Browse files
committed
DONOTMERGE: add traces in qc_snd_buf()
1 parent c44d64a commit 49064f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/quic_sock.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,9 @@ int qc_snd_buf(struct quic_conn *qc, const struct buffer *buf, size_t sz,
738738
struct cmsghdr align;
739739
} ancillary_data;
740740

741+
TRACE_PRINTF(TRACE_LEVEL_USER, QUIC_EV_CONN_SPPKTS, qc, 0, 0, 0,
742+
"sz=%zu flags=0x%0x gso_size=%u buf->size=%zu",
743+
sz, flags, gso_size, buf->size);
741744
/* man 3 cmsg
742745
*
743746
* When initializing a buffer that will contain a
@@ -822,6 +825,8 @@ int qc_snd_buf(struct quic_conn *qc, const struct buffer *buf, size_t sz,
822825
}
823826
}
824827

828+
TRACE_PRINTF(TRACE_LEVEL_USER, QUIC_EV_CONN_SPPKTS, qc, 0, 0, 0,
829+
"ret=%ld", ret);
825830
if (ret != sz)
826831
return 0;
827832

0 commit comments

Comments
 (0)