]> git.kaiwu.me - nginx.git/commitdiff
QUIC: got rid of "pkt" abbreviation in logs.
authorVladimir Homutov <vl@nginx.com>
Mon, 26 Oct 2020 20:47:49 +0000 (23:47 +0300)
committerVladimir Homutov <vl@nginx.com>
Mon, 26 Oct 2020 20:47:49 +0000 (23:47 +0300)
src/event/ngx_event_quic.c
src/event/ngx_event_quic_protection.c
src/event/ngx_event_quic_transport.c

index b42e9fdccc247261d8951b1e713b4a110bd9d86e..4593833da88983f21a4bc9983a08c54e6de43ecf 100644 (file)
@@ -1921,12 +1921,12 @@ ngx_quic_input(ngx_connection_t *c, ngx_buf_t *b, ngx_quic_conf_t *conf)
 #if (NGX_DEBUG)
         if (pkt.parsed) {
             ngx_log_debug5(NGX_LOG_DEBUG_EVENT, c->log, 0,
-                           "quic pkt %s done decr:%d pn:%L perr:%ui rc:%i",
+                           "quic packet %s done decr:%d pn:%L perr:%ui rc:%i",
                            ngx_quic_level_name(pkt.level), pkt.decrypted,
                            pkt.pn, pkt.error, rc);
         } else {
             ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
-                           "quic pkt done parse failed rc:%i", rc);
+                           "quic packet done parse failed rc:%i", rc);
         }
 #endif
 
@@ -1999,10 +1999,11 @@ ngx_quic_process_packet(ngx_connection_t *c, ngx_quic_conf_t *conf,
     qc = c->quic;
 
 #if (NGX_DEBUG)
-    ngx_quic_hexdump(c->log, "quic pkt rx dcid", pkt->dcid.data, pkt->dcid.len);
+    ngx_quic_hexdump(c->log, "quic packet rx dcid",
+                     pkt->dcid.data, pkt->dcid.len);
 
     if (pkt->level != ssl_encryption_application) {
-        ngx_quic_hexdump(c->log, "quic pkt rx scid", pkt->scid.data,
+        ngx_quic_hexdump(c->log, "quic packet rx scid", pkt->scid.data,
                          pkt->scid.len);
     }
 #endif
@@ -4551,7 +4552,7 @@ ngx_quic_send_frames(ngx_connection_t *c, ngx_quic_send_ctx_t *ctx,
     res.data = dst;
 
     ngx_log_debug6(NGX_LOG_DEBUG_EVENT, c->log, 0,
-                   "quic pkt tx %s bytes:%ui"
+                   "quic packet tx %s bytes:%ui"
                    " need_ack:%d number:%L encoded nl:%d trunc:0x%xD",
                    ngx_quic_level_name(start->level), out.len, pkt.need_ack,
                    pkt.number, pkt.num_len, pkt.trunc);
index db1219f46aa539904a849d31cb151138b1b9d3ad..e59af9b8131091b91a79ea08503b65a00bf3e620 100644 (file)
@@ -1113,9 +1113,9 @@ ngx_quic_decrypt(ngx_quic_header_t *pkt, ngx_ssl_conn_t *ssl_conn,
     pkt->flags = clearflags;
 
     ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
-                   "quic pkt rx clearflags:%xd", clearflags);
+                   "quic packet rx clearflags:%xd", clearflags);
     ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
-                   "quic pkt rx number:%uL len:%xi", pn, pnl);
+                   "quic packet rx number:%uL len:%xi", pn, pnl);
 
     /* packet protection */
 
index b6719de94998df8763e04382bf3e8177d0951570..085e5cb62413daaf858c8e9c9b0feee3aaed3c46 100644 (file)
@@ -326,7 +326,7 @@ ngx_quic_parse_long_header(ngx_quic_header_t *pkt)
     }
 
     ngx_log_debug2(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
-                   "quic pkt rx long flags:%xd version:%xD",
+                   "quic packet rx long flags:%xd version:%xD",
                    pkt->flags, pkt->version);
 
     if (!(pkt->flags & NGX_QUIC_PKT_FIXED_BIT)) {
@@ -540,7 +540,7 @@ ngx_quic_parse_short_header(ngx_quic_header_t *pkt, size_t dcid_len)
     end = pkt->data + pkt->len;
 
     ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
-                   "quic pkt rx short flags:%xd", pkt->flags);
+                   "quic packet rx short flags:%xd", pkt->flags);
 
     if (!(pkt->flags & NGX_QUIC_PKT_FIXED_BIT)) {
         ngx_log_error(NGX_LOG_INFO, pkt->log, 0, "quic fixed bit is not set");
@@ -597,7 +597,7 @@ ngx_quic_parse_initial_header(ngx_quic_header_t *pkt)
     }
 
     ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
-                   "quic pkt rx initial len:%uL", varint);
+                   "quic packet rx initial len:%uL", varint);
 
     if (varint > (uint64_t) ((pkt->data + pkt->len) - p)) {
         ngx_log_error(NGX_LOG_INFO, pkt->log, 0,
@@ -636,7 +636,7 @@ ngx_quic_parse_handshake_header(ngx_quic_header_t *pkt)
     }
 
     ngx_log_debug1(NGX_LOG_DEBUG_EVENT, pkt->log, 0,
-                   "quic pkt rx handshake len:%uL", plen);
+                   "quic packet rx handshake len:%uL", plen);
 
     if (plen > (uint64_t)((pkt->data + pkt->len) - p)) {
         ngx_log_error(NGX_LOG_INFO, pkt->log, 0,