diff options
Diffstat (limited to 'testsuites/samples/unlimited/test2.c')
-rw-r--r-- | testsuites/samples/unlimited/test2.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/testsuites/samples/unlimited/test2.c b/testsuites/samples/unlimited/test2.c index d8041df399..4eda66da29 100644 --- a/testsuites/samples/unlimited/test2.c +++ b/testsuites/samples/unlimited/test2.c @@ -25,6 +25,7 @@ #include <stdlib.h> #include "system.h" +#include "tmacros.h" void test2() { @@ -65,7 +66,7 @@ void test2() if (status_code_bad(result)) break; - printf("number = %3" PRIi32 ", id = %08x, starting, ", task_count, task_id[task_count]); + printf("number = %3" PRIi32 ", id = %08" PRIxrtems_id ", starting, ", task_count, task_id[task_count]); fflush(stdout); result = rtems_task_start(task_id[task_count], @@ -119,7 +120,7 @@ void test2() removed_ids[task++] = task_id[remove_task]; - printf(" TEST2 : block %" PRIi32 " remove, signal task %08x, ", block, task_id[remove_task]); + printf(" TEST2 : block %" PRIi32 " remove, signal task %08" PRIxrtems_id ", ", block, task_id[remove_task]); rtems_event_send(task_id[remove_task], 1); task_id[remove_task] = 0; } @@ -165,7 +166,7 @@ void test2() exit( 1 ); } - printf("number = %3" PRIi32 ", id = %08x, starting, ", task_count, task_id[id_slot]); + printf("number = %3" PRIi32 ", id = %08" PRIxrtems_id ", starting, ", task_count, task_id[id_slot]); result = rtems_task_start(task_id[id_slot], test_task, @@ -210,13 +211,13 @@ void test2() if ((task_id[id_slot] == task_id[allocated_id]) && (id_slot != allocated_id)) { printf( " FAIL2 : the new id is the same as an id already allocated -\n" - " task id = %08x\n", + " task id = %08" PRIxrtems_id "\n", task_id[id_slot]); exit( 1 ); } printf( " FAIL2 : could not find the task id in the removed table -\n" - " task id = %08x\n", + " task id = %08" PRIxrtems_id "\n", task_id[id_slot]); exit( 1 ); } |