[nginx] Format specifier fixed for file size of buffers.
Maxim Dounin
mdounin at mdounin.ru
Mon Mar 23 18:10:50 UTC 2015
details: http://hg.nginx.org/nginx/rev/b8926ba4d087
branches:
changeset: 6044:b8926ba4d087
user: Maxim Dounin <mdounin at mdounin.ru>
date: Mon Mar 23 19:28:54 2015 +0300
description:
Format specifier fixed for file size of buffers.
diffstat:
src/event/ngx_event_pipe.c | 8 ++++----
src/http/ngx_http_request_body.c | 6 +++---
src/http/ngx_http_write_filter_module.c | 4 ++--
3 files changed, 9 insertions(+), 9 deletions(-)
diffs (90 lines):
diff --git a/src/event/ngx_event_pipe.c b/src/event/ngx_event_pipe.c
--- a/src/event/ngx_event_pipe.c
+++ b/src/event/ngx_event_pipe.c
@@ -376,7 +376,7 @@ ngx_event_pipe_read_upstream(ngx_event_p
ngx_log_debug8(NGX_LOG_DEBUG_EVENT, p->log, 0,
"pipe buf busy s:%d t:%d f:%d "
"%p, pos %p, size: %z "
- "file: %O, size: %z",
+ "file: %O, size: %O",
(cl->buf->shadow ? 1 : 0),
cl->buf->temporary, cl->buf->in_file,
cl->buf->start, cl->buf->pos,
@@ -389,7 +389,7 @@ ngx_event_pipe_read_upstream(ngx_event_p
ngx_log_debug8(NGX_LOG_DEBUG_EVENT, p->log, 0,
"pipe buf out s:%d t:%d f:%d "
"%p, pos %p, size: %z "
- "file: %O, size: %z",
+ "file: %O, size: %O",
(cl->buf->shadow ? 1 : 0),
cl->buf->temporary, cl->buf->in_file,
cl->buf->start, cl->buf->pos,
@@ -402,7 +402,7 @@ ngx_event_pipe_read_upstream(ngx_event_p
ngx_log_debug8(NGX_LOG_DEBUG_EVENT, p->log, 0,
"pipe buf in s:%d t:%d f:%d "
"%p, pos %p, size: %z "
- "file: %O, size: %z",
+ "file: %O, size: %O",
(cl->buf->shadow ? 1 : 0),
cl->buf->temporary, cl->buf->in_file,
cl->buf->start, cl->buf->pos,
@@ -415,7 +415,7 @@ ngx_event_pipe_read_upstream(ngx_event_p
ngx_log_debug8(NGX_LOG_DEBUG_EVENT, p->log, 0,
"pipe buf free s:%d t:%d f:%d "
"%p, pos %p, size: %z "
- "file: %O, size: %z",
+ "file: %O, size: %O",
(cl->buf->shadow ? 1 : 0),
cl->buf->temporary, cl->buf->in_file,
cl->buf->start, cl->buf->pos,
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -936,7 +936,7 @@ ngx_http_request_body_chunked_filter(ngx
ngx_log_debug7(NGX_LOG_DEBUG_EVENT, r->connection->log, 0,
"http body chunked buf "
- "t:%d f:%d %p, pos %p, size: %z file: %O, size: %z",
+ "t:%d f:%d %p, pos %p, size: %z file: %O, size: %O",
cl->buf->temporary, cl->buf->in_file,
cl->buf->start, cl->buf->pos,
cl->buf->last - cl->buf->pos,
@@ -1068,7 +1068,7 @@ ngx_http_request_body_save_filter(ngx_ht
for (cl = rb->bufs; cl; cl = cl->next) {
ngx_log_debug7(NGX_LOG_DEBUG_EVENT, r->connection->log, 0,
"http body old buf t:%d f:%d %p, pos %p, size: %z "
- "file: %O, size: %z",
+ "file: %O, size: %O",
cl->buf->temporary, cl->buf->in_file,
cl->buf->start, cl->buf->pos,
cl->buf->last - cl->buf->pos,
@@ -1079,7 +1079,7 @@ ngx_http_request_body_save_filter(ngx_ht
for (cl = in; cl; cl = cl->next) {
ngx_log_debug7(NGX_LOG_DEBUG_EVENT, r->connection->log, 0,
"http body new buf t:%d f:%d %p, pos %p, size: %z "
- "file: %O, size: %z",
+ "file: %O, size: %O",
cl->buf->temporary, cl->buf->in_file,
cl->buf->start, cl->buf->pos,
cl->buf->last - cl->buf->pos,
diff --git a/src/http/ngx_http_write_filter_module.c b/src/http/ngx_http_write_filter_module.c
--- a/src/http/ngx_http_write_filter_module.c
+++ b/src/http/ngx_http_write_filter_module.c
@@ -73,7 +73,7 @@ ngx_http_write_filter(ngx_http_request_t
ngx_log_debug7(NGX_LOG_DEBUG_EVENT, c->log, 0,
"write old buf t:%d f:%d %p, pos %p, size: %z "
- "file: %O, size: %z",
+ "file: %O, size: %O",
cl->buf->temporary, cl->buf->in_file,
cl->buf->start, cl->buf->pos,
cl->buf->last - cl->buf->pos,
@@ -129,7 +129,7 @@ ngx_http_write_filter(ngx_http_request_t
ngx_log_debug7(NGX_LOG_DEBUG_EVENT, c->log, 0,
"write new buf t:%d f:%d %p, pos %p, size: %z "
- "file: %O, size: %z",
+ "file: %O, size: %O",
cl->buf->temporary, cl->buf->in_file,
cl->buf->start, cl->buf->pos,
cl->buf->last - cl->buf->pos,
More information about the nginx-devel
mailing list