summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRikard Falkeborn <rikard.falkeborn@gmail.com>2020-11-23 22:42:07 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-11-24 13:18:41 +0100
commit920f49a20be51170ec1804f2736ea3e2593cdbe5 (patch)
tree2763cccabd025becc428bcb90b6690a98281978d /tests
parent020aa0131bfa733b2a4bd62a010389f9871832df (diff)
downloadcurl-920f49a20be51170ec1804f2736ea3e2593cdbe5.tar.gz
infof/failf calls: fix format specifiers
Update a few format specifiers to match what is being printed. Closes #6241
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/lib1558.c2
-rw-r--r--tests/libtest/lib1915.c2
-rw-r--r--tests/unit/unit1660.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/libtest/lib1558.c b/tests/libtest/lib1558.c
index 4fb32b468..610339b63 100644
--- a/tests/libtest/lib1558.c
+++ b/tests/libtest/lib1558.c
@@ -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();
diff --git a/tests/libtest/lib1915.c b/tests/libtest/lib1915.c
index d1c755abf..4e632d3ab 100644
--- a/tests/libtest/lib1915.c
+++ b/tests/libtest/lib1915.c
@@ -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;
}
diff --git a/tests/unit/unit1660.c b/tests/unit/unit1660.c
index e13310ec2..3e9b1a40e 100644
--- a/tests/unit/unit1660.c
+++ b/tests/unit/unit1660.c
@@ -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";