From d02661a96bfdd036763ec24cac95b328ec234727 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 24 Dec 2007 17:05:31 +0000 Subject: use %*s format --- src/http/modules/ngx_http_proxy_module.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/http/modules/ngx_http_proxy_module.c') diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index ec31673ad..0849668ee 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -880,16 +880,9 @@ ngx_http_proxy_create_request(ngx_http_request_t *r) b->last = e.pos; } -#if (NGX_DEBUG) - { - ngx_str_t s; - - s.len = b->last - b->pos; - s.data = b->pos; - ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "http proxy header:\n\"%V\"", &s); - } -#endif + ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http proxy header:\n\"%*s\"", + (size_t) (b->last - b->pos), b->pos); if (plcf->body_set == NULL && plcf->upstream.pass_request_body) { -- cgit