Fixed logging in close error handling.

This commit is contained in:
Sergey Kandaurov 2016-03-31 02:33:50 +03:00
parent ce9d20eef4
commit 2e25f340b8
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;