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/unit1309.c | |
parent | eb49683e5591900b0c79fd9649a5aaf5549ea61f (diff) |
tests: Fix format specifiers
Diffstat (limited to 'tests/unit/unit1309.c')
-rw-r--r-- | tests/unit/unit1309.c | 4 |
1 files changed, 2 insertions, 2 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); |