From 9b86291bca3c2d7b7b7e1a839ce57cb4ff823374 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sat, 24 Oct 2009 05:52:48 +0000 Subject: Various warning fixes. --- testsuites/samples/unlimited/test1.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'testsuites/samples/unlimited/test1.c') diff --git a/testsuites/samples/unlimited/test1.c b/testsuites/samples/unlimited/test1.c index b8eb4e304a..18cccfa24d 100644 --- a/testsuites/samples/unlimited/test1.c +++ b/testsuites/samples/unlimited/test1.c @@ -17,11 +17,13 @@ * $Id$ */ -#include "system.h" -#include +#include #include #include +#include "system.h" +#include + void test1() { bool auto_extend; @@ -64,7 +66,7 @@ void test1() if (status_code_bad(result)) break; - printf("number = %3i, id = %08x, starting, ", task_count, task_id[task_count]); + printf("number = %3" PRIi32 ", id = %08x, starting, ", task_count, task_id[task_count]); fflush(stdout); result = rtems_task_start(task_id[task_count], @@ -88,7 +90,7 @@ void test1() if (task_count != (TASK_ALLOCATION_SIZE - 1)) { printf( " FAIL1 : the number of tasks does not equal the expected size -\n" - " task created = %i, required number = %i\n", + " task created = %" PRIi32 ", required number = %i\n", task_count, TASK_ALLOCATION_SIZE); exit( 1 ); } -- cgit v1.2.3