changeset 6001:add12ee1d01c

Style: use %*s format, as in 68d21fd1dc64.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 04 Mar 2015 08:05:38 +0300
parents 93fee708f168
children f8ee988cfe6d
files src/mail/ngx_mail_auth_http_module.c
diffstat 1 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/mail/ngx_mail_auth_http_module.c
+++ b/src/mail/ngx_mail_auth_http_module.c
@@ -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;