diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2018-05-06 21:20:32 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-05-14 09:42:27 +0200 |
commit | df3647c9c8f145c813ec8c7bd4ec5a6f81d89666 (patch) | |
tree | 07dd2519e6b18a6c2a325ff4f2ac32bb06073e6e /tests/unit | |
parent | eb49683e5591900b0c79fd9649a5aaf5549ea61f (diff) | |
download | curl-df3647c9c8f145c813ec8c7bd4ec5a6f81d89666.tar.gz |
tests: Fix format specifiers
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/unit1309.c | 4 | ||||
-rw-r--r-- | tests/unit/unit1395.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/unit1309.c b/tests/unit/unit1309.c index 7d3c00017..9d885389d 100644 --- a/tests/unit/unit1309.c +++ b/tests/unit/unit1309.c @@ -97,7 +97,7 @@ UNITTEST_START int rem = (i + 7)%NUM_NODES; printf("Tree look:\n"); splayprint(root, 0, 1); - printf("remove pointer %d, payload %zd\n", rem, + printf("remove pointer %d, payload %zu\n", rem, *(size_t *)nodes[rem].payload); rc = Curl_splayremovebyaddr(root, &nodes[rem], &root); if(rc) { @@ -130,7 +130,7 @@ UNITTEST_START tv_now.tv_usec = i; root = Curl_splaygetbest(tv_now, root, &removed); while(removed != NULL) { - printf("removed payload %zd[%zd]\n", + printf("removed payload %zu[%zu]\n", (*(size_t *)removed->payload) / 10, (*(size_t *)removed->payload) % 10); root = Curl_splaygetbest(tv_now, root, &removed); diff --git a/tests/unit/unit1395.c b/tests/unit/unit1395.c index 527f28142..78fdfa021 100644 --- a/tests/unit/unit1395.c +++ b/tests/unit/unit1395.c @@ -79,13 +79,13 @@ UNITTEST_START abort_unless(out != NULL, "returned NULL!"); if(strcmp(out, pairs[i].output)) { - fprintf(stderr, "Test %d: '%s' gave '%s' instead of '%s'\n", + fprintf(stderr, "Test %u: '%s' gave '%s' instead of '%s'\n", i, pairs[i].input, out, pairs[i].output); fail("Test case output mismatched"); fails++; } else - fprintf(stderr, "Test %d: OK\n", i); + fprintf(stderr, "Test %u: OK\n", i); free(out); } |