summaryrefslogtreecommitdiff
path: root/lib/http2.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-11-23 22:42:07 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-11-24 13:18:41 +0100
commit920f49a20be51170ec1804f2736ea3e2593cdbe5 (patch)
tree2763cccabd025becc428bcb90b6690a98281978d /lib/http2.c
parent020aa0131bfa733b2a4bd62a010389f9871832df (diff)
downloadcurl-920f49a20be51170ec1804f2736ea3e2593cdbe5.tar.gz
infof/failf calls: fix format specifiers
Update a few format specifiers to match what is being printed. Closes #6241
Diffstat (limited to 'lib/http2.c')
-rw-r--r--lib/http2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http2.c b/lib/http2.c
index 6d3394f78..b138fb4b0 100644
--- a/lib/http2.c
+++ b/lib/http2.c
@@ -2070,7 +2070,7 @@ static ssize_t http2_send(struct connectdata *conn, int sockindex,
if(acc > MAX_ACC) {
infof(conn->data, "http2_send: Warning: The cumulative length of all "
- "headers exceeds %zu bytes and that could cause the "
+ "headers exceeds %d bytes and that could cause the "
"stream to be rejected.\n", MAX_ACC);
}
}
@@ -2269,7 +2269,7 @@ CURLcode Curl_http2_switched(struct connectdata *conn,
data into stream->mem, overwriting data already there. */
if(H2_BUFSIZE < nread) {
failf(data, "connection buffer size is too small to store data following "
- "HTTP Upgrade response header: buflen=%zu, datalen=%zu",
+ "HTTP Upgrade response header: buflen=%d, datalen=%zu",
H2_BUFSIZE, nread);
return CURLE_HTTP2;
}