lib: replace PRI*32 printf masks with C89 ones

Also: fix indent.

Follow-up to 13c1a93414 #20215

Closes #21234
This commit is contained in:
Viktor Szakats 2026-04-05 18:08:32 +02:00
parent f1e3091923
commit f974a00aba
No known key found for this signature in database
2 changed files with 6 additions and 7 deletions

View File

@ -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;
}

View File

@ -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);
}