[nginx] Style: use %*s format, as in 68d21fd1dc64.

Ruslan Ermilov ru at nginx.com
Thu Mar 5 06:17:16 UTC 2015


details:   http://hg.nginx.org/nginx/rev/add12ee1d01c
branches:  
changeset: 6001:add12ee1d01c
user:      Ruslan Ermilov <ru at nginx.com>
date:      Wed Mar 04 08:05:38 2015 +0300
description:
Style: use %*s format, as in 68d21fd1dc64.

diffstat:

 src/mail/ngx_mail_auth_http_module.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (21 lines):

diff -r 93fee708f168 -r add12ee1d01c src/mail/ngx_mail_auth_http_module.c
--- a/src/mail/ngx_mail_auth_http_module.c	Wed Mar 04 19:20:30 2015 +0300
+++ b/src/mail/ngx_mail_auth_http_module.c	Wed Mar 04 08:05:38 2015 +0300
@@ -1394,14 +1394,9 @@ ngx_mail_auth_http_create_request(ngx_ma
     *b->last++ = CR; *b->last++ = LF;
 
 #if (NGX_DEBUG_MAIL_PASSWD)
-    {
-    ngx_str_t  l;
-
-    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);
-    }
+    ngx_log_debug2(NGX_LOG_DEBUG_MAIL, s->connection->log, 0,
+                   "mail auth http header:%N\"%*s\"",
+                   (size_t) (b->last - b->pos), b->pos);
 #endif
 
     return b;



More information about the nginx-devel mailing list