Skip to content

Commit

Permalink
fix broken implementation of PTLS_LOG
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Dec 3, 2024
1 parent 2ff4ffd commit 47e6c14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/picotls.h
Original file line number Diff line number Diff line change
Expand Up @@ -1421,10 +1421,10 @@ uint64_t ptls_decode_quicint(const uint8_t **src, const uint8_t *end);

#define PTLS_LOG(module, name, block) \
do { \
PTLS_LOG_DEFINE_POINT(module, name); \
if (ptls_log__active_connections(&logpoint) == 0) \
PTLS_LOG_DEFINE_POINT(module, name, logpoint); \
if (ptls_log_point_maybe_active(&logpoint) == 0) \
break; \
PTLS_LOG__DO_LOG((module), (type), (block)); \
PTLS_LOG__DO_LOG(module, name, NULL, NULL, NULL, {block}); \
} while (0)

#define PTLS_LOG_CONN(name, tls, block) \
Expand Down

0 comments on commit 47e6c14

Please sign in to comment.