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

@ -49,7 +49,7 @@ int test(char *URL)
goto test_cleanup;
}
printf("Protocol: %x\n", protocol);
printf("Protocol: %lx\n", protocol);
curl_easy_cleanup(curl);
curl_global_cleanup();

View file

@ -63,7 +63,7 @@ static CURLSTScode hstswrite(CURL *easy, struct curl_hstsentry *e,
{
(void)easy;
(void)userp;
printf("[%u/%u] %s %s\n", i->index, i->total, e->name, e->expire);
printf("[%zu/%zu] %s %s\n", i->index, i->total, e->name, e->expire);
return CURLSTS_OK;
}

View file

@ -152,7 +152,7 @@ UNITTEST_START
showsts(e, chost);
}
printf("Number of entries: %d\n", h->list.size);
printf("Number of entries: %zu\n", h->list.size);
/* verify that it is exists for 7 seconds */
chost = "expire.example";