From dbd40cad74c3a0772840a3ee3d7accd76d3af58e Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 26 Oct 2009 09:35:02 +0000 Subject: Use %zu instead of %d to print size_t's. --- testsuites/libtests/malloctest/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites/libtests') 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); -- cgit v1.2.3