From 3e1a05c46795685da4e55cb6e0a85a228a27f1da Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 16 Nov 2009 12:46:05 +0000 Subject: [PATCH] add alignment in debug log --- src/os/unix/ngx_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/unix/ngx_alloc.c b/src/os/unix/ngx_alloc.c index b215f7bae..860666a65 100644 --- a/src/os/unix/ngx_alloc.c +++ b/src/os/unix/ngx_alloc.c @@ -62,7 +62,7 @@ ngx_memalign(size_t alignment, size_t size, ngx_log_t *log) } ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, - "posix_memalign: %p:%uz", p, size); + "posix_memalign: %p:%uz @%uz", p, size, alignment); return p; } @@ -81,7 +81,7 @@ ngx_memalign(size_t alignment, size_t size, ngx_log_t *log) } ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, - "memalign: %p:%uz", p, size); + "memalign: %p:%uz @%uz", p, size, alignment); return p; }