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 | |
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.
-rw-r--r-- | testsuites/libtests/malloctest/init.c | 4 | ||||
-rw-r--r-- | testsuites/psxtests/psxfile01/test.c | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp13/task1.c | 2 | ||||
-rw-r--r-- | testsuites/sptests/sp48/init.c | 6 |
4 files changed, 7 insertions, 7 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); diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c index 7d3b32126a..92590a35c6 100644 --- a/testsuites/psxtests/psxfile01/test.c +++ b/testsuites/psxtests/psxfile01/test.c @@ -394,7 +394,7 @@ int main( test_extend( "/tmp/joel", max_size - 1 ); test_cat( "/tmp/joel", max_size / 2, 1024 ); } else { - printf( "Skipping maximum file size test since max_size is %d bytes\n", max_size ); + printf( "Skipping maximum file size test since max_size is %zu bytes\n", max_size ); puts("That is likely to be bigger than the available RAM on many targets." ); } diff --git a/testsuites/sptests/sp13/task1.c b/testsuites/sptests/sp13/task1.c index 2e79205fd4..fd8c054b88 100644 --- a/testsuites/sptests/sp13/task1.c +++ b/testsuites/sptests/sp13/task1.c @@ -291,7 +291,7 @@ rtems_test_pause(); ); if (status != RTEMS_SUCCESSFUL) { - printf("TA1 - msq que size: %d\n", queue_size); + printf("TA1 - msq que size: %zu\n", queue_size); directive_failed( status, "rtems_message_queue_create of Q1" ); } diff --git a/testsuites/sptests/sp48/init.c b/testsuites/sptests/sp48/init.c index 7d5c40db05..0a96e24598 100644 --- a/testsuites/sptests/sp48/init.c +++ b/testsuites/sptests/sp48/init.c @@ -27,7 +27,7 @@ rtems_task Init(rtems_task_argument ignored) puts( "\n\n*** TEST 48 ***" ); - printf( "Largest C program heap block available: %d\n", malloc_free_space() ); + printf( "Largest C program heap block available: %zu\n", malloc_free_space() ); for (i=0 ; i<MAX ; i++ ) { sc = rtems_semaphore_create( rtems_build_name('s', 'e', 'm', ' '), @@ -54,7 +54,7 @@ rtems_task Init(rtems_task_argument ignored) puts( "Created all semaphores allowed in this test" ); printf( "%d semaphores created\n", i ); - printf( "Largest C program heap block available: %d\n", malloc_free_space() ); + printf( "Largest C program heap block available: %zu\n", malloc_free_space() ); for ( i-- ; i ; i-- ) { sc = rtems_semaphore_delete( Semaphores[i] ); @@ -66,7 +66,7 @@ rtems_task Init(rtems_task_argument ignored) } printf( "%d semaphores successfully deleted\n", created ); - printf( "Largest C program heap block available: %d\n", malloc_free_space() ); + printf( "Largest C program heap block available: %zu\n", malloc_free_space() ); puts( "*** END OF TEST 48 ***" ); rtems_test_exit( 0 ); |