Mercurial > hg > nginx
comparison src/event/ngx_event_quic_transport.c @ 8651:dbad2d6d1898 quic
QUIC: removed ngx_quic_hexdump() macro.
Instead, appropriate format specifier for hexadecimal is used
in ngx_log_debug().
The STREAM frame "data" debug is moved into ngx_quic_log_frame(), similar
to all other frame fields debug.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Fri, 27 Nov 2020 18:43:36 +0300 |
parents | 05b1ee464350 |
children | 2dfc5ef29973 |
comparison
equal
deleted
inserted
replaced
8650:9dce2978e4fd | 8651:dbad2d6d1898 |
---|---|
918 &f->u.stream.data); | 918 &f->u.stream.data); |
919 if (p == NULL) { | 919 if (p == NULL) { |
920 goto error; | 920 goto error; |
921 } | 921 } |
922 | 922 |
923 #ifdef NGX_QUIC_DEBUG_FRAMES | |
924 ngx_quic_hexdump(pkt->log, "quic STREAM frame", | |
925 f->u.stream.data, f->u.stream.length); | |
926 #endif | |
927 break; | 923 break; |
928 | 924 |
929 case NGX_QUIC_FT_MAX_DATA: | 925 case NGX_QUIC_FT_MAX_DATA: |
930 | 926 |
931 p = ngx_quic_parse_int(p, end, &f->u.max_data.max_data); | 927 p = ngx_quic_parse_int(p, end, &f->u.max_data.max_data); |
1647 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, log, 0, | 1643 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, log, 0, |
1648 "quic tp active_connection_id_limit:%ui", | 1644 "quic tp active_connection_id_limit:%ui", |
1649 tp->active_connection_id_limit); | 1645 tp->active_connection_id_limit); |
1650 | 1646 |
1651 #if (NGX_QUIC_DRAFT_VERSION >= 28) | 1647 #if (NGX_QUIC_DRAFT_VERSION >= 28) |
1652 ngx_quic_hexdump(log, "quic tp initial_source_connection_id:", | 1648 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, log, 0, |
1653 tp->initial_scid.data, tp->initial_scid.len); | 1649 "quic tp initial source_connection_id len:%uz %xV", |
1650 tp->initial_scid.len, &tp->initial_scid); | |
1654 #endif | 1651 #endif |
1655 | 1652 |
1656 return NGX_OK; | 1653 return NGX_OK; |
1657 } | 1654 } |
1658 | 1655 |