aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2016-03-31 02:33:53 +0300
committerSergey Kandaurov <pluknet@nginx.com>2016-03-31 02:33:53 +0300
commitc622ff3b44ff57663ccd67f3830a6a84d20acd8f (patch)
tree5bd2ae274324d29ee4ba5cdfac0cbfb3d9ddfa46 /src/http/ngx_http_core_module.c
parent2e25f340b8848561a00993f88bdf1723b77fbabe (diff)
downloadnginx-c622ff3b44ff57663ccd67f3830a6a84d20acd8f.tar.gz
nginx-c622ff3b44ff57663ccd67f3830a6a84d20acd8f.zip
Fixed logging with variable field width.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 7a126bd84..bd36aeccc 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1597,7 +1597,8 @@ ngx_http_core_find_static_location(ngx_http_request_t *r,
}
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
- "test location: \"%*s\"", node->len, node->name);
+ "test location: \"%*s\"",
+ (size_t) node->len, node->name);
n = (len <= (size_t) node->len) ? len : node->len;