Mercurial > hg > nginx
diff src/http/modules/ngx_http_ssl_module.c @ 6478:3ef7bb882ad4
Fixed logging with variable field width.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 31 Mar 2016 02:33:53 +0300 |
parents | 2cd019520210 |
children | c256dfdd469d |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_ssl_module.c Thu Mar 31 02:33:50 2016 +0300 +++ b/src/http/modules/ngx_http_ssl_module.c Thu Mar 31 02:33:53 2016 +0300 @@ -338,7 +338,8 @@ #if (NGX_DEBUG) for (i = 0; i < inlen; i += in[i] + 1) { ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, - "SSL ALPN supported by client: %*s", in[i], &in[i + 1]); + "SSL ALPN supported by client: %*s", + (size_t) in[i], &in[i + 1]); } #endif @@ -365,7 +366,7 @@ } ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0, - "SSL ALPN selected: %*s", *outlen, *out); + "SSL ALPN selected: %*s", (size_t) *outlen, *out); return SSL_TLSEXT_ERR_OK; }