summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2014-05-14 22:26:30 +0400
committerRuslan Ermilov <ru@nginx.com>2014-05-14 22:26:30 +0400
commit5a3d4410cc5d8c622b00444de79bdaba70694ddd (patch)
tree6bb57242e8798cad49677f1692264132309a4ec4 /src
parent9b92f59aefe1e49ab70e7156263aec01c9eaecf2 (diff)
downloadnginx-5a3d4410cc5d8c622b00444de79bdaba70694ddd.tar.gz
nginx-5a3d4410cc5d8c622b00444de79bdaba70694ddd.tar.bz2
Style: use %N instead of '\n' where appropriate.
Diffstat (limited to 'src')
-rw-r--r--src/http/modules/ngx_http_proxy_module.c2
-rw-r--r--src/mail/ngx_mail_auth_http_module.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c
index ed596f862..61af3dfd3 100644
--- a/src/http/modules/ngx_http_proxy_module.c
+++ b/src/http/modules/ngx_http_proxy_module.c
@@ -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) {
diff --git a/src/mail/ngx_mail_auth_http_module.c b/src/mail/ngx_mail_auth_http_module.c
index 8094bbc5c..eb7531c80 100644
--- a/src/mail/ngx_mail_auth_http_module.c
+++ b/src/mail/ngx_mail_auth_http_module.c
@@ -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