diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-30 13:35:30 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-30 13:35:30 +0000 |
commit | f6e5e3bbb6ea39cb2470390dc8aa8451e0f297c2 (patch) | |
tree | 6fdeb1af5cd7abee4701586215844b3978060188 /testsuites/samples/base_mp | |
parent | 2009-10-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-f6e5e3bbb6ea39cb2470390dc8aa8451e0f297c2.tar.bz2 |
Use PRIxrtems_id to print rtems_ids.
Include "tmacros.h".
Diffstat (limited to 'testsuites/samples/base_mp')
-rw-r--r-- | testsuites/samples/base_mp/apptask.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/samples/base_mp/apptask.c b/testsuites/samples/base_mp/apptask.c index de41ea7d52..4b401c7a79 100644 --- a/testsuites/samples/base_mp/apptask.c +++ b/testsuites/samples/base_mp/apptask.c @@ -23,6 +23,8 @@ #include <stdio.h> #include <stdlib.h> +#include "tmacros.h" + rtems_task Application_task( rtems_task_argument node ) @@ -31,8 +33,8 @@ rtems_task Application_task( rtems_status_code status; status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid ); - printf( "This task was invoked with the node argument (%d)\n", node ); - printf( "This task has the id of 0x%x\n", tid ); + printf( "This task was invoked with the node argument (%" PRIdrtems_task_argument ")\n", node ); + printf( "This task has the id of 0x%" PRIxrtems_id "\n", tid ); printf( "*** END OF SAMPLE MULTIPROCESSOR APPLICATION ***\n" ); exit( 0 ); } |