aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_alloc.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-11-15 09:03:08 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-11-15 09:03:08 +0000
commitb13029c57c3011c6df10566278eb4d5255e592d2 (patch)
treefcf775e6f1743487febd5fcafd0682f4250a118e /src/os/unix/ngx_alloc.c
parentfc514f1d073c9b9cb0961749812be4cffcd80abe (diff)
downloadnginx-b13029c57c3011c6df10566278eb4d5255e592d2.tar.gz
nginx-b13029c57c3011c6df10566278eb4d5255e592d2.zip
update allocation error messages
Diffstat (limited to 'src/os/unix/ngx_alloc.c')
-rw-r--r--src/os/unix/ngx_alloc.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/os/unix/ngx_alloc.c b/src/os/unix/ngx_alloc.c
index 253117434..b215f7bae 100644
--- a/src/os/unix/ngx_alloc.c
+++ b/src/os/unix/ngx_alloc.c
@@ -21,7 +21,7 @@ ngx_alloc(size_t size, ngx_log_t *log)
p = malloc(size);
if (p == NULL) {
ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,
- "malloc() %uz bytes failed", size);
+ "malloc(%uz) failed", size);
}
ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, "malloc: %p:%uz", p, size);
@@ -57,8 +57,7 @@ ngx_memalign(size_t alignment, size_t size, ngx_log_t *log)
if (err) {
ngx_log_error(NGX_LOG_EMERG, log, err,
- "posix_memalign() %uz bytes aligned to %uz failed",
- size, alignment);
+ "posix_memalign(%uz, %uz) failed", alignment, size);
p = NULL;
}
@@ -78,8 +77,7 @@ ngx_memalign(size_t alignment, size_t size, ngx_log_t *log)
p = memalign(alignment, size);
if (p == NULL) {
ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,
- "memalign() %uz bytes aligned to %uz failed",
- size, alignment);
+ "memalign(%uz, %uz) failed", alignment, size);
}
ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0,