From: Sergey Kandaurov Date: Tue, 22 Dec 2020 09:04:15 +0000 (+0300) Subject: QUIC: fixed logging PATH_CHALLENGE/RESPONSE and build with GCC < 5. X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=df8ef280a508ba4589f1171e3f3381fa7fc6c04c;p=nginx.git QUIC: fixed logging PATH_CHALLENGE/RESPONSE and build with GCC < 5. --- diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c index 73519b968..73cde84d5 100644 --- a/src/event/ngx_event_quic.c +++ b/src/event/ngx_event_quic.c @@ -589,13 +589,15 @@ ngx_quic_log_frame(ngx_log_t *log, ngx_quic_frame_t *f, ngx_uint_t tx) break; case NGX_QUIC_FT_PATH_CHALLENGE: - p = ngx_slprintf(p, last, "PATH_CHALLENGE data:0x%xL", - *(uint64_t *) &f->u.path_challenge.data); + p = ngx_slprintf(p, last, "PATH_CHALLENGE data:0x%*xs", + sizeof(f->u.path_challenge.data), + f->u.path_challenge.data); break; case NGX_QUIC_FT_PATH_RESPONSE: - p = ngx_slprintf(p, last, "PATH_RESPONSE data:0x%xL", - f->u.path_response); + p = ngx_slprintf(p, last, "PATH_RESPONSE data:0x%*xs", + sizeof(f->u.path_challenge.data), + f->u.path_challenge.data); break; case NGX_QUIC_FT_NEW_TOKEN: