Mercurial > hg > nginx-quic
comparison src/event/quic/ngx_event_quic_bpf.c @ 8558:e5a180511dec quic
QUIC: fixed format specifiers in ngx_quic_bpf module.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 17 Aug 2021 11:41:11 +0300 |
parents | d4e02b3b734f |
children | 7c0f9bb27763 |
comparison
equal
deleted
inserted
replaced
8557:0d35b1ff6af5 | 8558:e5a180511dec |
---|---|
220 if (close(fd) != -1) { | 220 if (close(fd) != -1) { |
221 return; | 221 return; |
222 } | 222 } |
223 | 223 |
224 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, | 224 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, |
225 "quic bpf close %s fd:%i failed", name, fd); | 225 "quic bpf close %s fd:%d failed", name, fd); |
226 } | 226 } |
227 | 227 |
228 | 228 |
229 static ngx_quic_sock_group_t * | 229 static ngx_quic_sock_group_t * |
230 ngx_quic_bpf_find_group(ngx_quic_bpf_conf_t *bcf, ngx_listening_t *ls) | 230 ngx_quic_bpf_find_group(ngx_quic_bpf_conf_t *bcf, ngx_listening_t *ls) |
343 if (failed) { | 343 if (failed) { |
344 goto failed; | 344 goto failed; |
345 } | 345 } |
346 | 346 |
347 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, | 347 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, cycle->log, 0, |
348 "quic bpf sockmap created fd:%i", grp->map_fd); | 348 "quic bpf sockmap created fd:%d", grp->map_fd); |
349 return grp; | 349 return grp; |
350 | 350 |
351 failed: | 351 failed: |
352 | 352 |
353 if (grp->map_fd != -1) { | 353 if (grp->map_fd != -1) { |
398 | 398 |
399 return NULL; | 399 return NULL; |
400 } | 400 } |
401 | 401 |
402 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0, | 402 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0, |
403 "quic bpf sockmap fd duplicated old:%i new:%i", | 403 "quic bpf sockmap fd duplicated old:%d new:%d", |
404 ogrp->map_fd, grp->map_fd); | 404 ogrp->map_fd, grp->map_fd); |
405 | 405 |
406 return grp; | 406 return grp; |
407 } | 407 } |
408 | 408 |
439 "quic bpf failed to update socket map key=%xL", cookie); | 439 "quic bpf failed to update socket map key=%xL", cookie); |
440 return NGX_ERROR; | 440 return NGX_ERROR; |
441 } | 441 } |
442 | 442 |
443 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, cycle->log, 0, | 443 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, cycle->log, 0, |
444 "quic bpf sockmap fd:%d add socket:%d cookie:0x%xL worker:%d", | 444 "quic bpf sockmap fd:%d add socket:%d cookie:0x%xL worker:%ui", |
445 grp->map_fd, ls->fd, cookie, ls->worker); | 445 grp->map_fd, ls->fd, cookie, ls->worker); |
446 | 446 |
447 /* do not inherit this socket */ | 447 /* do not inherit this socket */ |
448 ls->ignore = 1; | 448 ls->ignore = 1; |
449 | 449 |
450 return NGX_OK; | 450 return NGX_OK; |
633 | 633 |
634 ngx_queue_insert_tail(&bcf->groups, &grp->queue); | 634 ngx_queue_insert_tail(&bcf->groups, &grp->queue); |
635 | 635 |
636 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, | 636 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, |
637 "quic bpf sockmap inherited with " | 637 "quic bpf sockmap inherited with " |
638 "fd:%i address:%*s", | 638 "fd:%d address:%*s", |
639 grp->map_fd, p - v, v); | 639 grp->map_fd, p - v, v); |
640 v = p + 1; | 640 v = p + 1; |
641 break; | 641 break; |
642 | 642 |
643 default: | 643 default: |