summaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2019-01-01 23:04:57 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-01-04 23:51:13 +0100
commit1e4ec09a26e58ba62c3a3dd3913939d7f4173809 (patch)
tree58316ad4805413dfe5e970fbc9ff8a020dbb43a6 /lib/transfer.c
parentfa2d6ba84d7f87148738f3cbccf29016dd324f87 (diff)
downloadcurl-1e4ec09a26e58ba62c3a3dd3913939d7f4173809.tar.gz
printf: introduce CURL_FORMAT_TIMEDIFF_T
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index dd910d2ef..e687e6018 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1350,15 +1350,15 @@ CURLcode Curl_readwrite(struct connectdata *conn,
if(k->keepon) {
if(0 > Curl_timeleft(data, &k->now, FALSE)) {
if(k->size != -1) {
- failf(data, "Operation timed out after %ld milliseconds with %"
- CURL_FORMAT_CURL_OFF_T " out of %"
+ failf(data, "Operation timed out after %" CURL_FORMAT_TIMEDIFF_T
+ " milliseconds with %" CURL_FORMAT_CURL_OFF_T " out of %"
CURL_FORMAT_CURL_OFF_T " bytes received",
Curl_timediff(k->now, data->progress.t_startsingle),
k->bytecount, k->size);
}
else {
- failf(data, "Operation timed out after %ld milliseconds with %"
- CURL_FORMAT_CURL_OFF_T " bytes received",
+ failf(data, "Operation timed out after %" CURL_FORMAT_TIMEDIFF_T
+ " milliseconds with %" CURL_FORMAT_CURL_OFF_T " bytes received",
Curl_timediff(k->now, data->progress.t_startsingle),
k->bytecount);
}