Skip to content

Commit 47e6c14

Browse files
committed
fix broken implementation of PTLS_LOG
1 parent 2ff4ffd commit 47e6c14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/picotls.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,10 +1421,10 @@ uint64_t ptls_decode_quicint(const uint8_t **src, const uint8_t *end);
14211421

14221422
#define PTLS_LOG(module, name, block) \
14231423
do { \
1424-
PTLS_LOG_DEFINE_POINT(module, name); \
1425-
if (ptls_log__active_connections(&logpoint) == 0) \
1424+
PTLS_LOG_DEFINE_POINT(module, name, logpoint); \
1425+
if (ptls_log_point_maybe_active(&logpoint) == 0) \
14261426
break; \
1427-
PTLS_LOG__DO_LOG((module), (type), (block)); \
1427+
PTLS_LOG__DO_LOG(module, name, NULL, NULL, NULL, {block}); \
14281428
} while (0)
14291429

14301430
#define PTLS_LOG_CONN(name, tls, block) \

0 commit comments

Comments
 (0)