From: Viktor Szakats Date: Sun, 5 Apr 2026 16:08:32 +0000 (+0200) Subject: lib: replace `PRI*32` printf masks with C89 ones X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f974a00abaaa7d30610c1951e012d3220e033c24;p=thirdparty%2Fcurl.git lib: replace `PRI*32` printf masks with C89 ones Also: fix indent. Follow-up to 13c1a934144e98d06214a043ff4538791c7d9583 #20215 Closes #21234 --- diff --git a/lib/cf-h2-proxy.c b/lib/cf-h2-proxy.c index 99c39f6f98..68194dc786 100644 --- a/lib/cf-h2-proxy.c +++ b/lib/cf-h2-proxy.c @@ -1158,10 +1158,9 @@ static CURLcode h2_handle_tunnel_close(struct Curl_cfilter *cf, *pnread = 0; if(ctx->tunnel.error) { - failf(data, "HTTP/2 stream %" PRIu32 " reset by %s (error 0x%" PRIx32 - " %s)", ctx->tunnel.stream_id, - ctx->tunnel.reset ? "server" : "curl", - ctx->tunnel.error, nghttp2_http2_strerror(ctx->tunnel.error)); + failf(data, "HTTP/2 stream %u reset by %s (error 0x%x %s)", + ctx->tunnel.stream_id, ctx->tunnel.reset ? "server" : "curl", + ctx->tunnel.error, nghttp2_http2_strerror(ctx->tunnel.error)); return CURLE_RECV_ERROR; } diff --git a/lib/http2.c b/lib/http2.c index c3f2c1be34..d5f3132252 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -1709,9 +1709,9 @@ static CURLcode http2_handle_stream_close(struct Curl_cfilter *cf, stream->close_handled = TRUE; return CURLE_OK; } - failf(data, "HTTP/2 stream %" PRIu32 " reset by %s (error 0x%" PRIx32 - " %s)", stream->id, stream->reset_by_server ? "server" : "curl", - stream->error, nghttp2_http2_strerror(stream->error)); + failf(data, "HTTP/2 stream %u reset by %s (error 0x%x %s)", + stream->id, stream->reset_by_server ? "server" : "curl", + stream->error, nghttp2_http2_strerror(stream->error)); return stream->error ? CURLE_HTTP2_STREAM : (data->req.bytecount ? CURLE_PARTIAL_FILE : CURLE_HTTP2); }