[nginx] SPDY: fixed format specifiers in logging.

Valentin Bartenev vbart at nginx.com
Tue Jan 14 12:57:57 UTC 2014


details:   http://hg.nginx.org/nginx/rev/a30bba3c72e8
branches:  
changeset: 5507:a30bba3c72e8
user:      Valentin Bartenev <vbart at nginx.com>
date:      Tue Jan 14 16:24:45 2014 +0400
description:
SPDY: fixed format specifiers in logging.

diffstat:

 src/http/ngx_http_spdy.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (57 lines):

diff -r 64af0f7c4dcd -r a30bba3c72e8 src/http/ngx_http_spdy.c
--- a/src/http/ngx_http_spdy.c	Tue Jan 14 16:24:02 2014 +0400
+++ b/src/http/ngx_http_spdy.c	Tue Jan 14 16:24:45 2014 +0400
@@ -484,7 +484,7 @@ ngx_http_spdy_send_output_queue(ngx_http
         out = frame;
 
         ngx_log_debug5(NGX_LOG_DEBUG_HTTP, c->log, 0,
-                       "spdy frame out: %p sid:%ui prio:%ui bl:%ui size:%uz",
+                       "spdy frame out: %p sid:%ui prio:%ui bl:%d size:%uz",
                        out, out->stream ? out->stream->id : 0, out->priority,
                        out->blocked, out->size);
     }
@@ -525,7 +525,7 @@ ngx_http_spdy_send_output_queue(ngx_http
         }
 
         ngx_log_debug4(NGX_LOG_DEBUG_HTTP, c->log, 0,
-                       "spdy frame sent: %p sid:%ui bl:%ui size:%uz",
+                       "spdy frame sent: %p sid:%ui bl:%d size:%uz",
                        out, out->stream ? out->stream->id : 0,
                        out->blocked, out->size);
     }
@@ -659,7 +659,7 @@ ngx_http_spdy_state_head(ngx_http_spdy_c
     pos += sizeof(uint32_t);
 
     ngx_log_debug3(NGX_LOG_DEBUG_HTTP, sc->connection->log, 0,
-                   "spdy process frame head:%08Xd f:%ui l:%ui",
+                   "spdy process frame head:%08XD f:%Xd l:%uz",
                    head, sc->flags, sc->length);
 
     if (ngx_spdy_ctl_frame_check(head)) {
@@ -1480,7 +1480,7 @@ ngx_http_spdy_state_save(ngx_http_spdy_c
     if (end - pos > NGX_SPDY_STATE_BUFFER_SIZE) {
         ngx_log_error(NGX_LOG_ALERT, sc->connection->log, 0,
                       "spdy state buffer overflow: "
-                      "%i bytes required", end - pos);
+                      "%z bytes required", end - pos);
         return ngx_http_spdy_state_internal_error(sc);
     }
 #endif
@@ -1729,7 +1729,7 @@ ngx_http_spdy_get_ctl_frame(ngx_http_spd
 #if (NGX_DEBUG)
     if (size > NGX_SPDY_CTL_FRAME_BUFFER_SIZE - NGX_SPDY_FRAME_HEADER_SIZE) {
         ngx_log_error(NGX_LOG_ALERT, sc->pool->log, 0,
-                      "requested control frame is too big: %z", size);
+                      "requested control frame is too big: %uz", size);
         return NULL;
     }
 
@@ -2104,7 +2104,7 @@ ngx_http_spdy_alloc_large_header_buffer(
     }
 
     ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
-                   "spdy large header alloc: %p %uz",
+                   "spdy large header alloc: %p %z",
                    buf->pos, buf->end - buf->last);
 
     old = r->header_in->pos;



More information about the nginx-devel mailing list