diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2016-03-31 02:33:50 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2016-03-31 02:33:50 +0300 |
commit | 2e25f340b8848561a00993f88bdf1723b77fbabe (patch) | |
tree | 7ea000ef491161b970a0742bde89e7010c8cf581 /src | |
parent | ce9d20eef4c7cd24464b04ede423cd797a89f170 (diff) | |
download | nginx-2e25f340b8848561a00993f88bdf1723b77fbabe.tar.gz nginx-2e25f340b8848561a00993f88bdf1723b77fbabe.zip |
Fixed logging in close error handling.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ngx_open_file_cache.c | 2 | ||||
-rw-r--r-- | src/http/modules/ngx_http_random_index_module.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_open_file_cache.c b/src/core/ngx_open_file_cache.c index f8bb2e38e..b23ee78d1 100644 --- a/src/core/ngx_open_file_cache.c +++ b/src/core/ngx_open_file_cache.c @@ -544,7 +544,7 @@ failed: if (ngx_close_file(fd) == NGX_FILE_ERROR) { ngx_log_error(NGX_LOG_ALERT, log, ngx_errno, - ngx_close_file_n " \"%V\" failed", name); + ngx_close_file_n " \"%s\" failed", name); } ngx_set_errno(err); diff --git a/src/http/modules/ngx_http_random_index_module.c b/src/http/modules/ngx_http_random_index_module.c index b0f0e0809..b47ee4f0d 100644 --- a/src/http/modules/ngx_http_random_index_module.c +++ b/src/http/modules/ngx_http_random_index_module.c @@ -230,7 +230,7 @@ ngx_http_random_index_handler(ngx_http_request_t *r) if (ngx_close_dir(&dir) == NGX_ERROR) { ngx_log_error(NGX_LOG_ALERT, r->connection->log, ngx_errno, - ngx_close_dir_n " \"%s\" failed", &path); + ngx_close_dir_n " \"%V\" failed", &path); } n = names.nelts; |