changeset 5507:a30bba3c72e8

SPDY: fixed format specifiers in logging.
author Valentin Bartenev <vbart@nginx.com>
date Tue, 14 Jan 2014 16:24:45 +0400
parents 64af0f7c4dcd
children 9053fdcea4b7
files src/http/ngx_http_spdy.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_spdy.c
+++ b/src/http/ngx_http_spdy.c
@@ -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;