comparison src/os/unix/ngx_alloc.c @ 3343:3051e512e301

fix building without --with-debug, introduced in r3328
author Igor Sysoev <igor@sysoev.ru>
date Mon, 16 Nov 2009 16:00:52 +0000
parents f67635893ed8
children d620f497c50f
comparison
equal deleted inserted replaced
3342:f1b5b7eec72a 3343:3051e512e301
59 ngx_log_error(NGX_LOG_EMERG, log, err, 59 ngx_log_error(NGX_LOG_EMERG, log, err,
60 "posix_memalign(%uz, %uz) failed", alignment, size); 60 "posix_memalign(%uz, %uz) failed", alignment, size);
61 p = NULL; 61 p = NULL;
62 } 62 }
63 63
64 ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, 64 ngx_log_debug3(NGX_LOG_DEBUG_ALLOC, log, 0,
65 "posix_memalign: %p:%uz @%uz", p, size, alignment); 65 "posix_memalign: %p:%uz @%uz", p, size, alignment);
66 66
67 return p; 67 return p;
68 } 68 }
69 69
78 if (p == NULL) { 78 if (p == NULL) {
79 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, 79 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,
80 "memalign(%uz, %uz) failed", alignment, size); 80 "memalign(%uz, %uz) failed", alignment, size);
81 } 81 }
82 82
83 ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, 83 ngx_log_debug3(NGX_LOG_DEBUG_ALLOC, log, 0,
84 "memalign: %p:%uz @%uz", p, size, alignment); 84 "memalign: %p:%uz @%uz", p, size, alignment);
85 85
86 return p; 86 return p;
87 } 87 }
88 88