[nginx] Fixed format specifier in logging of "c->number".

Sergey Kandaurov pluknet at nginx.com
Thu Mar 6 14:28:08 UTC 2014


details:   http://hg.nginx.org/nginx/rev/957d734362ed
branches:  
changeset: 5600:957d734362ed
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Thu Mar 06 18:25:59 2014 +0400
description:
Fixed format specifier in logging of "c->number".

diffstat:

 src/core/ngx_resolver.c       |  2 +-
 src/event/ngx_event_accept.c  |  2 +-
 src/event/ngx_event_connect.c |  2 +-
 src/mail/ngx_mail_handler.c   |  2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 68e41f0cb207 -r 957d734362ed src/core/ngx_resolver.c
--- a/src/core/ngx_resolver.c	Tue Mar 04 23:40:35 2014 +0400
+++ b/src/core/ngx_resolver.c	Thu Mar 06 18:25:59 2014 +0400
@@ -3062,7 +3062,7 @@ ngx_udp_connect(ngx_udp_connection_t *uc
 #endif
 
     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);
 
diff -r 68e41f0cb207 -r 957d734362ed src/event/ngx_event_accept.c
--- a/src/event/ngx_event_accept.c	Tue Mar 04 23:40:35 2014 +0400
+++ b/src/event/ngx_event_accept.c	Thu Mar 06 18:25:59 2014 +0400
@@ -344,7 +344,7 @@ ngx_event_accept(ngx_event_t *ev)
 #endif
 
         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(c) == NGX_ERROR) {
diff -r 68e41f0cb207 -r 957d734362ed src/event/ngx_event_connect.c
--- a/src/event/ngx_event_connect.c	Tue Mar 04 23:40:35 2014 +0400
+++ b/src/event/ngx_event_connect.c	Thu Mar 06 18:25:59 2014 +0400
@@ -122,7 +122,7 @@ ngx_event_connect_peer(ngx_peer_connecti
     }
 
     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);
 
diff -r 68e41f0cb207 -r 957d734362ed src/mail/ngx_mail_handler.c
--- a/src/mail/ngx_mail_handler.c	Tue Mar 04 23:40:35 2014 +0400
+++ b/src/mail/ngx_mail_handler.c	Thu Mar 06 18:25:59 2014 +0400
@@ -127,7 +127,7 @@ ngx_mail_init_connection(ngx_connection_
     c->data = s;
     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);
 
     ctx = ngx_palloc(c->pool, sizeof(ngx_mail_log_ctx_t));



More information about the nginx-devel mailing list