summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests')
-rw-r--r--testsuites/libtests/malloctest/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/libtests/malloctest/init.c b/testsuites/libtests/malloctest/init.c
index 6e56e094f7..7a2977d5f0 100644
--- a/testsuites/libtests/malloctest/init.c
+++ b/testsuites/libtests/malloctest/init.c
@@ -52,7 +52,7 @@ static void test_realloc(void)
p2 = realloc(p1, i);
if (p2 != p1)
printf( "realloc - failed grow in place: "
- "%p != realloc(%p,%d)\n", p1, p2, i);
+ "%p != realloc(%p,%zu)\n", p1, p2, i);
p1 = p2;
}
free(p1);
@@ -63,7 +63,7 @@ static void test_realloc(void)
p2 = realloc(p1, i);
if (p2 != p1)
printf( "realloc - failed shrink in place: "
- "%p != realloc(%p,%d)\n", p1, p2, i);
+ "%p != realloc(%p,%zu)\n", p1, p2, i);
p1 = p2;
}
free(p1);