Mercurial > hg > nginx
comparison src/http/ngx_http_file_cache.c @ 6478:3ef7bb882ad4
Fixed logging with variable field width.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 31 Mar 2016 02:33:53 +0300 |
parents | 22c32937a41f |
children | d94f57990492 |
comparison
equal
deleted
inserted
replaced
6477:47daf95d0138 | 6478:3ef7bb882ad4 |
---|---|
1832 fcn->expire = ngx_time() + cache->inactive; | 1832 fcn->expire = ngx_time() + cache->inactive; |
1833 ngx_queue_insert_head(&cache->sh->queue, &fcn->queue); | 1833 ngx_queue_insert_head(&cache->sh->queue, &fcn->queue); |
1834 | 1834 |
1835 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, | 1835 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, 0, |
1836 "ignore long locked inactive cache entry %*s, count:%d", | 1836 "ignore long locked inactive cache entry %*s, count:%d", |
1837 2 * NGX_HTTP_CACHE_KEY_LEN, key, fcn->count); | 1837 (size_t) 2 * NGX_HTTP_CACHE_KEY_LEN, key, fcn->count); |
1838 } | 1838 } |
1839 | 1839 |
1840 ngx_shmtx_unlock(&cache->shpool->mutex); | 1840 ngx_shmtx_unlock(&cache->shpool->mutex); |
1841 | 1841 |
1842 ngx_free(name); | 1842 ngx_free(name); |