]> git.kaiwu.me - nginx.git/commitdiff
Style: use %*s format, as in 68d21fd1dc64.
authorRuslan Ermilov <ru@nginx.com>
Wed, 4 Mar 2015 05:05:38 +0000 (08:05 +0300)
committerRuslan Ermilov <ru@nginx.com>
Wed, 4 Mar 2015 05:05:38 +0000 (08:05 +0300)
src/mail/ngx_mail_auth_http_module.c

index e4fbb0d26d90e2da64f974edd3585cc62b8f5558..d93e94644ac67d2c5d144fc751264dc115a837b7 100644 (file)
@@ -1394,14 +1394,9 @@ ngx_mail_auth_http_create_request(ngx_mail_session_t *s, ngx_pool_t *pool,
     *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;