aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-02 09:31:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-02 09:31:18 +0000
commit353f7641193ddf3f6a42d49d53ea994e4ea4388b (patch)
tree17927ce646b5331cedef8a05b819d5869ad983be /lib/transfer.c
parent9f437269fb0b8ccb3311da268e985fea122bc8b8 (diff)
Yet another curl_off_t printf format attempt, we now exclude the %-letter from
FORMAT_OFF_T to allow additional options to get specified, like with '"%5" FORMAT_OFF_T'.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index e1803162a..b37691aa9 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1240,8 +1240,8 @@ CURLcode Curl_readwrite(struct connectdata *conn,
if (data->set.timeout &&
((Curl_tvdiff(k->now, k->start)/1000) >= data->set.timeout)) {
- failf (data, "Operation timed out with " FORMAT_OFF_T " out of "
- FORMAT_OFF_T " bytes received",
+ failf (data, "Operation timed out with %" FORMAT_OFF_T
+ " out of %" FORMAT_OFF_T " bytes received",
k->bytecount, conn->size);
return CURLE_OPERATION_TIMEOUTED;
}
@@ -1255,7 +1255,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
if(!(data->set.no_body) && (conn->size != -1) &&
(k->bytecount != conn->size) &&
!conn->newurl) {
- failf(data, "transfer closed with " FORMAT_OFF_T
+ failf(data, "transfer closed with %" FORMAT_OFF_T
" bytes remaining to read",
conn->size - k->bytecount);
return CURLE_PARTIAL_FILE;