From 929c9a7ef7d84a7d71a624d830ba891e61b2266f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 20 Apr 2025 10:08:00 +0200 Subject: [PATCH] openssl-quic: fix printf mask Fixes: ``` lib/vquic/curl_osslq.c:835:25: error: format '%zd' expects argument of type 'signed size_t', but argument 6 has type 'curl_off_t' {aka 'long long int'} [-Werror=format=] 835 | CURL_TRC_CF(data, cf, "[%" FMT_PRId64 "] DATA len=%zu, total=%zd", | ^~~~ 836 | stream->s.id, buflen, stream->download_recvd); | ~~~~~~~~~~~~~~~~~~~~~~ | | | curl_off_t {aka long long int} ``` Closes #17106 --- lib/vquic/curl_osslq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vquic/curl_osslq.c b/lib/vquic/curl_osslq.c index 824ae62ff6..6d1f85e3d5 100644 --- a/lib/vquic/curl_osslq.c +++ b/lib/vquic/curl_osslq.c @@ -832,7 +832,7 @@ static int cb_h3_recv_data(nghttp3_conn *conn, int64_t stream3_id, return NGHTTP3_ERR_CALLBACK_FAILURE; } stream->download_recvd += (curl_off_t)buflen; - CURL_TRC_CF(data, cf, "[%" FMT_PRId64 "] DATA len=%zu, total=%zd", + CURL_TRC_CF(data, cf, "[%" FMT_PRId64 "] DATA len=%zu, total=%" FMT_OFF_T, stream->s.id, buflen, stream->download_recvd); h3_drain_stream(cf, data); return 0; -- 2.47.3