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/libtest/testtrace.c | |
parent | eb49683e5591900b0c79fd9649a5aaf5549ea61f (diff) |
tests: Fix format specifiers
Diffstat (limited to 'tests/libtest/testtrace.c')
-rw-r--r-- | tests/libtest/testtrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libtest/testtrace.c b/tests/libtest/testtrace.c index 5c68b3b1b..63e022b33 100644 --- a/tests/libtest/testtrace.c +++ b/tests/libtest/testtrace.c @@ -43,12 +43,12 @@ void libtest_debug_dump(const char *timebuf, const char *text, FILE *stream, /* without the hex output, we can fit more on screen */ width = 0x40; - fprintf(stream, "%s%s, %d bytes (0x%x)\n", timebuf, text, - (int)size, (int)size); + fprintf(stream, "%s%s, %zu bytes (0x%zx)\n", timebuf, text, + size, size); for(i = 0; i < size; i += width) { - fprintf(stream, "%04x: ", (int)i); + fprintf(stream, "%04zx: ", i); if(!nohex) { /* hex not disabled, show it */ |