diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 09:35:02 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 09:35:02 +0000 |
commit | dbd40cad74c3a0772840a3ee3d7accd76d3af58e (patch) | |
tree | 722f5d741c4e63dcf188949ece7abdedd7b01b66 /testsuites/libtests/malloctest | |
parent | 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-dbd40cad74c3a0772840a3ee3d7accd76d3af58e.tar.bz2 |
Use %zu instead of %d to print size_t's.
Diffstat (limited to 'testsuites/libtests/malloctest')
-rw-r--r-- | testsuites/libtests/malloctest/init.c | 4 |
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); |