Welcome! Log In Create A New Profile

Advanced

[PATCH] print format for nevents

August 06, 2014 10:22AM
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];
Subject Author Posted

[PATCH] print format for nevents

crespin August 06, 2014 10:22AM

Re: [PATCH] print format for nevents

Maxim Dounin August 06, 2014 12:06PM

Re: [PATCH] print format for nevents

crespin August 06, 2014 12:28PM

Re: [PATCH] print format for nevents

Maxim Dounin August 06, 2014 01:22PM

Re: [PATCH] print format for nevents

crespin August 07, 2014 09:08AM

Re: [PATCH] print format for nevents

Maxim Dounin August 10, 2014 09:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 78
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready