mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:43:31 +03:00
h3: sync printf masks with types, drop two casts
Also fix `nwritten` signedness in `cb_h3_read_req_body()`.
Follow-up to e78b1b3ecc #21153
Ref: #20848
Closes #21799
This commit is contained in:
parent
e4139a73c8
commit
c2ca16f3ff
2 changed files with 9 additions and 12 deletions
|
|
@ -1555,7 +1555,7 @@ static nghttp3_ssize cb_h3_read_req_body(nghttp3_conn *conn, int64_t stream_id,
|
|||
struct cf_ngtcp2_ctx *ctx = cf->ctx;
|
||||
struct Curl_easy *data = stream_user_data;
|
||||
struct h3_stream_ctx *stream = H3_STREAM_CTX(ctx, data);
|
||||
ssize_t nwritten = 0;
|
||||
size_t nwritten = 0;
|
||||
size_t nvecs = 0;
|
||||
(void)cf;
|
||||
(void)conn;
|
||||
|
|
@ -1602,8 +1602,8 @@ static nghttp3_ssize cb_h3_read_req_body(nghttp3_conn *conn, int64_t stream_id,
|
|||
}
|
||||
|
||||
CURL_TRC_CF(data, cf, "[%" PRId64 "] read req body -> "
|
||||
"%d vecs%s with %zd (buffered=%zu, left=%" FMT_OFF_T ")",
|
||||
stream->id, (int)nvecs,
|
||||
"%zd vecs%s with %zu (buffered=%zu, left=%" FMT_OFF_T ")",
|
||||
stream->id, nvecs,
|
||||
*pflags == NGHTTP3_DATA_FLAG_EOF ? " EOF" : "",
|
||||
nwritten, Curl_bufq_len(&stream->sendbuf),
|
||||
stream->upload_left);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue