Format specifier fixes in error logging

Co-authored-by: Nishat Shabbir <nishat@bugqore.com>
This commit is contained in:
Sergey KandaurovandNishat Shabbir authored and Sergey Kandaurov committed 2026-07-25 00:50:53 +04:00
1 parent 0cb3d7fb13
commit 33eedb5ae6
7 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -566,7 +566,7 @@ ngx_conf_read_token(ngx_conf_t *cf)
} else {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"too long parameter \"%*s...\" started",
10, start);
(size_t) 10, start);
return NGX_ERROR;
}
+1 -1
View File
@@ -1730,7 +1730,7 @@ ngx_ssl_ech_files(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_array_t *filenames)
if (OSSL_ECHSTORE_num_keys(es, &numkeys) != 1) {
ngx_ssl_error(NGX_LOG_EMERG, ssl->log, 0,
"OSSL_ECHSTORE_num_keys(%s) failed");
"OSSL_ECHSTORE_num_keys() failed");
goto cleanup;
}
+3 -3
View File
@@ -694,7 +694,7 @@ ngx_quic_log_frame(ngx_log_t *log, ngx_quic_frame_t *f, ngx_uint_t tx)
case NGX_QUIC_FT_ACK:
case NGX_QUIC_FT_ACK_ECN:
p = ngx_slprintf(p, last, "ACK n:%ui delay:%uL ",
p = ngx_slprintf(p, last, "ACK n:%uL delay:%uL ",
f->u.ack.range_count, f->u.ack.delay);
if (f->data) {
@@ -758,7 +758,7 @@ ngx_quic_log_frame(ngx_log_t *log, ngx_quic_frame_t *f, ngx_uint_t tx)
case NGX_QUIC_FT_CONNECTION_CLOSE:
case NGX_QUIC_FT_CONNECTION_CLOSE_APP:
p = ngx_slprintf(p, last, "CONNECTION_CLOSE%s err:%ui",
p = ngx_slprintf(p, last, "CONNECTION_CLOSE%s err:%uL",
f->type == NGX_QUIC_FT_CONNECTION_CLOSE ? "" : "_APP",
f->u.close.error_code);
@@ -767,7 +767,7 @@ ngx_quic_log_frame(ngx_log_t *log, ngx_quic_frame_t *f, ngx_uint_t tx)
}
if (f->type == NGX_QUIC_FT_CONNECTION_CLOSE) {
p = ngx_slprintf(p, last, " ft:%ui", f->u.close.frame_type);
p = ngx_slprintf(p, last, " ft:%uL", f->u.close.frame_type);
}
break;
+1 -1
View File
@@ -964,7 +964,7 @@ ngx_http_geo_add_range(ngx_conf_t *cf, ngx_http_geo_conf_ctx_t *ctx,
e = (ngx_uint_t) range[i].end;
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"range \"%V\" overlaps \"%d.%d.%d.%d-%d.%d.%d.%d\"",
"range \"%V\" overlaps \"%i.%i.%i.%i-%i.%i.%i.%i\"",
ctx->net,
h >> 8, h & 0xff, s >> 8, s & 0xff,
h >> 8, h & 0xff, e >> 8, e & 0xff);
+1 -1
View File
@@ -5456,7 +5456,7 @@ ngx_http_core_pool_size(ngx_conf_t *cf, void *post, void *data)
if (*sp % NGX_POOL_ALIGNMENT) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"the pool size must be a multiple of %uz",
"the pool size must be a multiple of %d",
NGX_POOL_ALIGNMENT);
return NGX_CONF_ERROR;
}
+2 -2
View File
@@ -411,7 +411,7 @@ ngx_http_v2_pool_size(ngx_conf_t *cf, void *post, void *data)
if (*sp % NGX_POOL_ALIGNMENT) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"the pool size must be a multiple of %uz",
"the pool size must be a multiple of %d",
NGX_POOL_ALIGNMENT);
return NGX_CONF_ERROR;
@@ -428,7 +428,7 @@ ngx_http_v2_preread_size(ngx_conf_t *cf, void *post, void *data)
if (*sp > NGX_HTTP_V2_MAX_WINDOW) {
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"the maximum body preread buffer size is %uz",
"the maximum body preread buffer size is %ud",
NGX_HTTP_V2_MAX_WINDOW);
return NGX_CONF_ERROR;
+1 -1
View File
@@ -914,7 +914,7 @@ ngx_stream_geo_add_range(ngx_conf_t *cf, ngx_stream_geo_conf_ctx_t *ctx,
e = (ngx_uint_t) range[i].end;
ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
"range \"%V\" overlaps \"%d.%d.%d.%d-%d.%d.%d.%d\"",
"range \"%V\" overlaps \"%i.%i.%i.%i-%i.%i.%i.%i\"",
ctx->net,
h >> 8, h & 0xff, s >> 8, s & 0xff,
h >> 8, h & 0xff, e >> 8, e & 0xff);