comparison src/event/modules/ngx_poll_module.c @ 5803:ecfc601f1225

Events: format specifier fixes.
author Yves Crespin <yves.crespin@e-quartz.fr>
date Thu, 07 Aug 2014 15:04:43 +0200
parents a4e9c7e6e062
children 92490a725fef
comparison
equal deleted inserted replaced
5802:a4e9c7e6e062 5803:ecfc601f1225
249 249
250 #if (NGX_DEBUG0) 250 #if (NGX_DEBUG0)
251 if (cycle->log->log_level & NGX_LOG_DEBUG_ALL) { 251 if (cycle->log->log_level & NGX_LOG_DEBUG_ALL) {
252 for (i = 0; i < nevents; i++) { 252 for (i = 0; i < nevents; i++) {
253 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 253 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
254 "poll: %d: fd:%d ev:%04Xd", 254 "poll: %ui: fd:%d ev:%04Xd",
255 i, event_list[i].fd, event_list[i].events); 255 i, event_list[i].fd, event_list[i].events);
256 } 256 }
257 } 257 }
258 #endif 258 #endif
259 259
266 if (flags & NGX_UPDATE_TIME || ngx_event_timer_alarm) { 266 if (flags & NGX_UPDATE_TIME || ngx_event_timer_alarm) {
267 ngx_time_update(); 267 ngx_time_update();
268 } 268 }
269 269
270 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 270 ngx_log_debug2(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
271 "poll ready %d of %d", ready, nevents); 271 "poll ready %d of %ui", ready, nevents);
272 272
273 if (err) { 273 if (err) {
274 if (err == NGX_EINTR) { 274 if (err == NGX_EINTR) {
275 275
276 if (ngx_event_timer_alarm) { 276 if (ngx_event_timer_alarm) {
306 306
307 revents = event_list[i].revents; 307 revents = event_list[i].revents;
308 308
309 #if 1 309 #if 1
310 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 310 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
311 "poll: %d: fd:%d ev:%04Xd rev:%04Xd", 311 "poll: %ui: fd:%d ev:%04Xd rev:%04Xd",
312 i, event_list[i].fd, event_list[i].events, revents); 312 i, event_list[i].fd, event_list[i].events, revents);
313 #else 313 #else
314 if (revents) { 314 if (revents) {
315 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, cycle->log, 0, 315 ngx_log_debug4(NGX_LOG_DEBUG_EVENT, cycle->log, 0,
316 "poll: %d: fd:%d ev:%04Xd rev:%04Xd", 316 "poll: %ui: fd:%d ev:%04Xd rev:%04Xd",
317 i, event_list[i].fd, event_list[i].events, revents); 317 i, event_list[i].fd, event_list[i].events, revents);
318 } 318 }
319 #endif 319 #endif
320 320
321 if (revents & POLLNVAL) { 321 if (revents & POLLNVAL) {