[nginx] Style: use %N instead of '\n' where appropriate.
Ruslan Ermilov
ru at nginx.com
Wed May 14 18:28:05 UTC 2014
details: http://hg.nginx.org/nginx/rev/0cbefdcf82a6
branches:
changeset: 5685:0cbefdcf82a6
user: Ruslan Ermilov <ru at nginx.com>
date: Wed May 14 22:26:30 2014 +0400
description:
Style: use %N instead of '\n' where appropriate.
diffstat:
src/http/modules/ngx_http_proxy_module.c | 2 +-
src/mail/ngx_mail_auth_http_module.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r bc98b0f11bdd -r 0cbefdcf82a6 src/http/modules/ngx_http_proxy_module.c
--- a/src/http/modules/ngx_http_proxy_module.c Wed May 14 22:26:05 2014 +0400
+++ b/src/http/modules/ngx_http_proxy_module.c Wed May 14 22:26:30 2014 +0400
@@ -1294,7 +1294,7 @@ ngx_http_proxy_create_request(ngx_http_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 -r bc98b0f11bdd -r 0cbefdcf82a6 src/mail/ngx_mail_auth_http_module.c
--- a/src/mail/ngx_mail_auth_http_module.c Wed May 14 22:26:05 2014 +0400
+++ b/src/mail/ngx_mail_auth_http_module.c Wed May 14 22:26:30 2014 +0400
@@ -1269,7 +1269,7 @@ ngx_mail_auth_http_create_request(ngx_ma
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
More information about the nginx-devel
mailing list