From f6e5e3bbb6ea39cb2470390dc8aa8451e0f297c2 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 30 Oct 2009 13:35:30 +0000 Subject: Use PRIxrtems_id to print rtems_ids. Include "tmacros.h". --- testsuites/samples/base_mp/apptask.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testsuites') 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 #include +#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 ); } -- cgit v1.2.3