Style: use %N instead of '\n' where appropriate.

This commit is contained in:
Ruslan Ermilov 2014-05-14 22:26:30 +04:00
parent 9b92f59aef
commit 5a3d4410cc
2 changed files with 2 additions and 2 deletions

View File

@ -1294,7 +1294,7 @@ ngx_http_proxy_create_request(ngx_http_request_t *r)
}
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"http proxy header:\n\"%*s\"",
"http proxy header:%N\"%*s\"",
(size_t) (b->last - b->pos), b->pos);
if (plcf->body_set == NULL && plcf->upstream.pass_request_body) {

View File

@ -1269,7 +1269,7 @@ ngx_mail_auth_http_create_request(ngx_mail_session_t *s, ngx_pool_t *pool,
l.len = b->last - b->pos;
l.data = b->pos;
ngx_log_debug1(NGX_LOG_DEBUG_MAIL, s->connection->log, 0,
"mail auth http header:\n\"%V\"", &l);
"mail auth http header:%N\"%V\"", &l);
}
#endif