mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 15:50:48 -04:00
fix printf-style format strings
This commit is contained in:
parent
ccffed997e
commit
3e21f1e971
@ -349,7 +349,7 @@ static void read_rewind(struct connectdata *conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEBUGF(infof(conn->data,
|
DEBUGF(infof(conn->data,
|
||||||
"Buffer after stream rewind (read_pos = %d): [%s]",
|
"Buffer after stream rewind (read_pos = %zu): [%s]",
|
||||||
conn->read_pos, buf));
|
conn->read_pos, buf));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -600,7 +600,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
|
|||||||
dataleft = conn->chunk.dataleft;
|
dataleft = conn->chunk.dataleft;
|
||||||
if(dataleft != 0) {
|
if(dataleft != 0) {
|
||||||
infof(conn->data, "Leftovers after chunking. "
|
infof(conn->data, "Leftovers after chunking. "
|
||||||
" Rewinding %d bytes\n",dataleft);
|
" Rewinding %zu bytes\n",dataleft);
|
||||||
read_rewind(conn, dataleft);
|
read_rewind(conn, dataleft);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -610,7 +610,8 @@ static CURLcode readwrite_data(struct SessionHandle *data,
|
|||||||
|
|
||||||
/* Account for body content stored in the header buffer */
|
/* Account for body content stored in the header buffer */
|
||||||
if(k->badheader && !k->ignorebody) {
|
if(k->badheader && !k->ignorebody) {
|
||||||
DEBUGF(infof(data, "Increasing bytecount by %" FORMAT_OFF_T" from hbuflen\n", k->hbuflen));
|
DEBUGF(infof(data, "Increasing bytecount by %zu from hbuflen\n",
|
||||||
|
k->hbuflen));
|
||||||
k->bytecount += k->hbuflen;
|
k->bytecount += k->hbuflen;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -623,10 +624,10 @@ static CURLcode readwrite_data(struct SessionHandle *data,
|
|||||||
always will fit in a size_t */
|
always will fit in a size_t */
|
||||||
if(excess > 0 && !k->ignorebody) {
|
if(excess > 0 && !k->ignorebody) {
|
||||||
infof(data,
|
infof(data,
|
||||||
"Rewinding stream by : %d"
|
"Rewinding stream by : %zu"
|
||||||
" bytes on url %s (size = %" FORMAT_OFF_T
|
" bytes on url %s (size = %" FORMAT_OFF_T
|
||||||
", maxdownload = %" FORMAT_OFF_T
|
", maxdownload = %" FORMAT_OFF_T
|
||||||
", bytecount = %" FORMAT_OFF_T ", nread = %d)\n",
|
", bytecount = %" FORMAT_OFF_T ", nread = %zd)\n",
|
||||||
excess, data->state.path,
|
excess, data->state.path,
|
||||||
k->size, k->maxdownload, k->bytecount, nread);
|
k->size, k->maxdownload, k->bytecount, nread);
|
||||||
read_rewind(conn, excess);
|
read_rewind(conn, excess);
|
||||||
@ -635,10 +636,10 @@ static CURLcode readwrite_data(struct SessionHandle *data,
|
|||||||
else {
|
else {
|
||||||
infof(data,
|
infof(data,
|
||||||
"Excess found in a non pipelined read:"
|
"Excess found in a non pipelined read:"
|
||||||
" excess=%zu"
|
" excess = %zu"
|
||||||
", size=%" FORMAT_OFF_T
|
", size = %" FORMAT_OFF_T
|
||||||
", maxdownload=%" FORMAT_OFF_T
|
", maxdownload = %" FORMAT_OFF_T
|
||||||
", bytecount=%" FORMAT_OFF_T "\n",
|
", bytecount = %" FORMAT_OFF_T "\n",
|
||||||
excess, k->size, k->maxdownload, k->bytecount);
|
excess, k->size, k->maxdownload, k->bytecount);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -668,7 +669,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
|
|||||||
else
|
else
|
||||||
result = Curl_client_write(conn, CLIENTWRITE_BODY,
|
result = Curl_client_write(conn, CLIENTWRITE_BODY,
|
||||||
data->state.headerbuff,
|
data->state.headerbuff,
|
||||||
k->maxdownload);
|
(size_t)k->maxdownload);
|
||||||
|
|
||||||
if(result)
|
if(result)
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user