comparison src/http/ngx_http_core_module.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 2cd019520210
children 2f98b5709d79
comparison
equal deleted inserted replaced
6477:47daf95d0138 6478:3ef7bb882ad4
1595 if (node == NULL) { 1595 if (node == NULL) {
1596 return rv; 1596 return rv;
1597 } 1597 }
1598 1598
1599 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 1599 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
1600 "test location: \"%*s\"", node->len, node->name); 1600 "test location: \"%*s\"",
1601 (size_t) node->len, node->name);
1601 1602
1602 n = (len <= (size_t) node->len) ? len : node->len; 1603 n = (len <= (size_t) node->len) ? len : node->len;
1603 1604
1604 rc = ngx_filename_cmp(uri, node->name, n); 1605 rc = ngx_filename_cmp(uri, node->name, n);
1605 1606