[PATCH] use format %ui according to i type in ngx_poll_module.c

crespin nginx-forum at nginx.us
Thu Aug 7 13:20:10 UTC 2014


Hello,

I notice a wrong format %d for ngx_uint_t variable in ngx_poll_module.c.

Regards,

yves

# HG changeset patch
# User Yves Crespin<yves.crespin at e-quartz.fr>
# Date 1407416683 -7200
# Node ID 97fcc94109c0ea7b929f7fa5a8c7ee95ecf7cb5c
# Parent  b71a279c696bcd18bd6b3c2845fe8e51d57ea1fd
use format %ui according to i type

diff -r b71a279c696b -r 97fcc94109c0 src/event/modules/ngx_poll_module.c
--- a/src/event/modules/ngx_poll_module.c	Thu Aug 07 14:56:57 2014 +0200
+++ b/src/event/modules/ngx_poll_module.c	Thu Aug 07 15:04:43 2014 +0200
@@ -252,7 +252,7 @@
     if (cycle->log->log_level & NGX_LOG_DEBUG_ALL) {
         for (i = 0; i < nevents; i++) {
             ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
-                           "poll: %d: fd:%d ev:%04Xd",
+                           "poll: %ui: fd:%d ev:%04Xd",
                            i, event_list[i].fd, event_list[i].events);
         }
     }
@@ -309,12 +309,12 @@
 
 #if 1
         ngx_log_debug4(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
-                       "poll: %d: fd:%d ev:%04Xd rev:%04Xd",
+                       "poll: %ui: fd:%d ev:%04Xd rev:%04Xd",
                        i, event_list[i].fd, event_list[i].events,
revents);
 #else
         if (revents) {
             ngx_log_debug4(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
-                           "poll: %d: fd:%d ev:%04Xd rev:%04Xd",
+                           "poll: %ui: fd:%d ev:%04Xd rev:%04Xd",
                            i, event_list[i].fd, event_list[i].events,
revents);
         }
 #endif

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



More information about the nginx mailing list