summaryrefslogtreecommitdiffhomepage
path: root/src/http
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2013-08-20 20:47:16 +0400
committerSergey Kandaurov <pluknet@nginx.com>2013-08-20 20:47:16 +0400
commite09741ba06fd4870d90be6df7c59cd4e6da8a8b0 (patch)
tree5dff9e42abb8243c82fec7d4335796a02e610f12 /src/http
parent300530284fc15c75df5478def354eab520cc615c (diff)
downloadnginx-e09741ba06fd4870d90be6df7c59cd4e6da8a8b0.tar.gz
nginx-e09741ba06fd4870d90be6df7c59cd4e6da8a8b0.tar.bz2
Format specifier fixes in error logging.
Diffstat (limited to 'src/http')
-rw-r--r--src/http/ngx_http_special_response.c2
-rw-r--r--src/http/ngx_http_variables.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c
index 875c24d9c..546400539 100644
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -370,7 +370,7 @@ ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error)
ngx_http_core_loc_conf_t *clcf;
ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
- "http special response: %d, \"%V?%V\"",
+ "http special response: %i, \"%V?%V\"",
error, &r->uri, &r->args);
r->err_status = error;
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index b4f8eeba0..4138bda42 100644
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -487,7 +487,7 @@ ngx_http_get_indexed_variable(ngx_http_request_t *r, ngx_uint_t index)
if (cmcf->variables.nelts <= index) {
ngx_log_error(NGX_LOG_ALERT, r->connection->log, 0,
- "unknown variable index: %d", index);
+ "unknown variable index: %ui", index);
return NULL;
}