]> git.kaiwu.me - nginx.git/commitdiff
Fixed format specifiers.
authorSergey Kandaurov <pluknet@nginx.com>
Sat, 23 May 2020 12:53:08 +0000 (15:53 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Sat, 23 May 2020 12:53:08 +0000 (15:53 +0300)
src/event/ngx_event_openssl_stapling.c

index 57debd49cd49c8c24694325d58a36fdd65ebf4aa..a0a63c16516ff5a18559e0af159452c2e4c998b5 100644 (file)
@@ -948,7 +948,7 @@ ngx_ssl_ocsp_validate(ngx_connection_t *c)
     }
 
     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_t *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