[PATCH] print format for nevents

crespin nginx-forum at nginx.us
Wed Aug 6 14:22:10 UTC 2014


Hello,

nevents is an ngx_int_t, so the print format must be "%i".

Regards,

yves

static ngx_int_t       nevents;

--- a/nginx-1.7.4/src/event/modules/ngx_poll_module.c
+++ b/nginx-1.7.4/src/event/modules/ngx_poll_module.c
@@ -201,7 +201,7 @@ ngx_poll_del_event(ngx_event_t *ev, ngx_int_t event,
ngx_uint_t flags)
         if (ev->index < (ngx_uint_t) nevents) {
 
             ngx_log_debug2(NGX_LOG_DEBUG_EVENT, ev->log, 0,
-                           "index: copy event %ui to %i", nevents,
ev->index);
+                           "index: copy event %i to %i", nevents,
ev->index);
 
             event_list[ev->index] = event_list[nevents];

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,252365,252365#msg-252365



More information about the nginx mailing list