infof/failf calls: fix format specifiers

Update a few format specifiers to match what is being printed.

Closes #6241
This commit is contained in:
Rikard Falkeborn 2020-11-23 22:42:07 +01:00 committed by Daniel Stenberg
parent 020aa0131b
commit 920f49a20b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
12 changed files with 20 additions and 20 deletions

View file

@ -227,11 +227,11 @@ bool progress_meter(struct GlobalConfig *global,
}
if(dlknown && all_dltotal)
/* TODO: handle integer overflow */
msnprintf(dlpercen, sizeof(dlpercen), "%3d",
msnprintf(dlpercen, sizeof(dlpercen), "%3" CURL_FORMAT_CURL_OFF_T,
all_dlnow * 100 / all_dltotal);
if(ulknown && all_ultotal)
/* TODO: handle integer overflow */
msnprintf(ulpercen, sizeof(ulpercen), "%3d",
msnprintf(ulpercen, sizeof(ulpercen), "%3" CURL_FORMAT_CURL_OFF_T,
all_ulnow * 100 / all_ultotal);
/* get the transfer speed, the higher of the two */