[nginx] Fixed format specifiers.

Sergey Kandaurov pluknet at nginx.com
Mon May 25 10:53:19 UTC 2020


details:   https://hg.nginx.org/nginx/rev/bd4d1b9db0ee
branches:  
changeset: 7655:bd4d1b9db0ee
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Sat May 23 15:53:08 2020 +0300
description:
Fixed format specifiers.

diffstat:

 src/event/ngx_event_openssl_stapling.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r b56f725dd4bb -r bd4d1b9db0ee src/event/ngx_event_openssl_stapling.c
--- a/src/event/ngx_event_openssl_stapling.c	Fri May 22 17:25:27 2020 +0300
+++ b/src/event/ngx_event_openssl_stapling.c	Sat May 23 15:53:08 2020 +0300
@@ -948,7 +948,7 @@ ngx_ssl_ocsp_validate(ngx_connection_t *
     }
 
     ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0,
-                   "ssl ocsp validate, certs:%i", sk_X509_num(ocsp->certs));
+                   "ssl ocsp validate, certs:%d", sk_X509_num(ocsp->certs));
 
     ngx_ssl_ocsp_validate_next(c);
 
@@ -2661,7 +2661,7 @@ ngx_ssl_ocsp_create_key(ngx_ssl_ocsp_ctx
         ngx_hex_dump(buf, ctx->key.data, ctx->key.len);
 
         ngx_log_debug2(NGX_LOG_DEBUG_EVENT, ctx->log, 0,
-                       "ssl ocsp key %*s", 120, buf);
+                       "ssl ocsp key %*s", sizeof(buf), buf);
     }
 #endif
 


More information about the nginx-devel mailing list