comparison src/os/win32/ngx_alloc.c @ 3321:93e8daca5dbb

update allocation error messages
author Igor Sysoev <igor@sysoev.ru>
date Sun, 15 Nov 2009 09:03:08 +0000
parents 201d017ea470
children d620f497c50f
comparison
equal deleted inserted replaced
3320:d4ad1b0b6c8d 3321:93e8daca5dbb
18 void *p; 18 void *p;
19 19
20 p = malloc(size); 20 p = malloc(size);
21 if (p == NULL) { 21 if (p == NULL) {
22 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, 22 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno,
23 "malloc() %uz bytes failed", size); 23 "malloc(%uz) failed", size);
24 } 24 }
25 25
26 ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, "malloc: %p:%uz", p, size); 26 ngx_log_debug2(NGX_LOG_DEBUG_ALLOC, log, 0, "malloc: %p:%uz", p, size);
27 27
28 return p; 28 return p;