Mercurial > hg > nginx
comparison src/http/modules/ngx_http_gzip_filter_module.c @ 6480:f01ab2dbcfdc
Fixed logging.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 31 Mar 2016 02:33:57 +0300 |
parents | 973fded4f461 |
children | da46bfc484ef |
comparison
equal
deleted
inserted
replaced
6479:dc92298b1852 | 6480:f01ab2dbcfdc |
---|---|
1007 p = ctx->free_mem; | 1007 p = ctx->free_mem; |
1008 ctx->free_mem += alloc; | 1008 ctx->free_mem += alloc; |
1009 ctx->allocated -= alloc; | 1009 ctx->allocated -= alloc; |
1010 | 1010 |
1011 ngx_log_debug4(NGX_LOG_DEBUG_HTTP, ctx->request->connection->log, 0, | 1011 ngx_log_debug4(NGX_LOG_DEBUG_HTTP, ctx->request->connection->log, 0, |
1012 "gzip alloc: n:%ud s:%ud a:%ud p:%p", | 1012 "gzip alloc: n:%ud s:%ud a:%ui p:%p", |
1013 items, size, alloc, p); | 1013 items, size, alloc, p); |
1014 | 1014 |
1015 return p; | 1015 return p; |
1016 } | 1016 } |
1017 | 1017 |
1018 ngx_log_error(NGX_LOG_ALERT, ctx->request->connection->log, 0, | 1018 ngx_log_error(NGX_LOG_ALERT, ctx->request->connection->log, 0, |
1019 "gzip filter failed to use preallocated memory: %ud of %ud", | 1019 "gzip filter failed to use preallocated memory: %ud of %ui", |
1020 items * size, ctx->allocated); | 1020 items * size, ctx->allocated); |
1021 | 1021 |
1022 p = ngx_palloc(ctx->request->pool, items * size); | 1022 p = ngx_palloc(ctx->request->pool, items * size); |
1023 | 1023 |
1024 return p; | 1024 return p; |