mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 04:19:06 +08:00
Fixed format specifier in logging of "c->number".
This commit is contained in:
parent
39b04fce3a
commit
bd3516e8d9
@ -3062,7 +3062,7 @@ ngx_udp_connect(ngx_udp_connection_t *uc)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, &uc->log, 0,
|
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, &uc->log, 0,
|
||||||
"connect to %V, fd:%d #%d", &uc->server, s, c->number);
|
"connect to %V, fd:%d #%uA", &uc->server, s, c->number);
|
||||||
|
|
||||||
rc = connect(s, uc->sockaddr, uc->socklen);
|
rc = connect(s, uc->sockaddr, uc->socklen);
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ ngx_event_accept(ngx_event_t *ev)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, log, 0,
|
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, log, 0,
|
||||||
"*%d accept: %V fd:%d", c->number, &c->addr_text, s);
|
"*%uA accept: %V fd:%d", c->number, &c->addr_text, s);
|
||||||
|
|
||||||
if (ngx_add_conn && (ngx_event_flags & NGX_USE_EPOLL_EVENT) == 0) {
|
if (ngx_add_conn && (ngx_event_flags & NGX_USE_EPOLL_EVENT) == 0) {
|
||||||
if (ngx_add_conn(c) == NGX_ERROR) {
|
if (ngx_add_conn(c) == NGX_ERROR) {
|
||||||
|
@ -122,7 +122,7 @@ ngx_event_connect_peer(ngx_peer_connection_t *pc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, pc->log, 0,
|
ngx_log_debug3(NGX_LOG_DEBUG_EVENT, pc->log, 0,
|
||||||
"connect to %V, fd:%d #%d", pc->name, s, c->number);
|
"connect to %V, fd:%d #%uA", pc->name, s, c->number);
|
||||||
|
|
||||||
rc = connect(s, pc->sockaddr, pc->socklen);
|
rc = connect(s, pc->sockaddr, pc->socklen);
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ ngx_mail_init_connection(ngx_connection_t *c)
|
|||||||
c->data = s;
|
c->data = s;
|
||||||
s->connection = c;
|
s->connection = c;
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0, "*%ui client %V connected to %V",
|
ngx_log_error(NGX_LOG_INFO, c->log, 0, "*%uA client %V connected to %V",
|
||||||
c->number, &c->addr_text, s->addr_text);
|
c->number, &c->addr_text, s->addr_text);
|
||||||
|
|
||||||
ctx = ngx_palloc(c->pool, sizeof(ngx_mail_log_ctx_t));
|
ctx = ngx_palloc(c->pool, sizeof(ngx_mail_log_ctx_t));
|
||||||
|
Loading…
Reference in New Issue
Block a user