aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-08-15 20:14:49 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-08-15 20:14:49 +0000
commitb17e33293affc50d5b011684877ca5674d9c6fc5 (patch)
tree76428a4ccf07e9b204223f80562b39a13adf965f /src
parent6f39513828a100cf95dfbf4b0b6a544ec43fac5b (diff)
downloadnginx-b17e33293affc50d5b011684877ca5674d9c6fc5.tar.gz
nginx-b17e33293affc50d5b011684877ca5674d9c6fc5.zip
fix log message
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_output_chain.c2
-rw-r--r--src/os/unix/ngx_files.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c
index c4bd67851..db7337cb3 100644
--- a/src/core/ngx_output_chain.c
+++ b/src/core/ngx_output_chain.c
@@ -414,7 +414,7 @@ ngx_output_chain_copy_buf(ngx_buf_t *dst, ngx_buf_t *src, ngx_uint_t sendfile)
if (n != size) {
ngx_log_error(NGX_LOG_ALERT, src->file->log, 0,
- ngx_read_file_n " reads only %z of %O from file",
+ ngx_read_file_n " read only %z of %O from file",
n, size);
if (n == 0) {
return NGX_ERROR;
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h
index 7e8407086..1edac54af 100644
--- a/src/os/unix/ngx_files.h
+++ b/src/os/unix/ngx_files.h
@@ -58,7 +58,11 @@ ngx_fd_t ngx_open_tempfile(u_char *name, ngx_uint_t persistent,
ssize_t ngx_read_file(ngx_file_t *file, u_char *buf, size_t size, off_t offset);
+#if (NGX_HAVE_PREAD)
+#define ngx_read_file_n "pread()"
+#else
#define ngx_read_file_n "read()"
+#endif
ssize_t ngx_write_file(ngx_file_t *file, u_char *buf, size_t size,
off_t offset);