diff options
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 */ |