summaryrefslogtreecommitdiffstats
path: root/testsuites/samples
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 06:59:20 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 06:59:20 +0000
commit073dff354d05021fbcd65e895fa65fa090cb6dd3 (patch)
tree82c8f290e132c20ad8de95ac7e044ce606094a11 /testsuites/samples
parent6fa28e901dfefdd346b6befd3f91548ef57f42ba (diff)
downloadrtems-073dff354d05021fbcd65e895fa65fa090cb6dd3.tar.bz2
Use PRIdrtems_task_argument to print rtems_task_argument's.
Diffstat (limited to 'testsuites/samples')
-rw-r--r--testsuites/samples/base_sp/apptask.c2
-rw-r--r--testsuites/samples/unlimited/init.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/samples/base_sp/apptask.c b/testsuites/samples/base_sp/apptask.c
index 9604cc1020..6b7d1db0c9 100644
--- a/testsuites/samples/base_sp/apptask.c
+++ b/testsuites/samples/base_sp/apptask.c
@@ -33,7 +33,7 @@ rtems_task Application_task(
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
- printf( "Application task was invoked with argument (%d) "
+ printf( "Application task was invoked with argument (%" PRIdrtems_task_argument ") "
"and has id of 0x%" PRIxrtems_id "\n", argument, tid );
printf( "*** END OF SAMPLE SINGLE PROCESSOR APPLICATION ***\n" );
diff --git a/testsuites/samples/unlimited/init.c b/testsuites/samples/unlimited/init.c
index 62b5ab20de..117bfd792e 100644
--- a/testsuites/samples/unlimited/init.c
+++ b/testsuites/samples/unlimited/init.c
@@ -66,11 +66,11 @@ rtems_task test_task(
{
rtems_event_set out;
- printf( "task %i has started.\n", my_number);
+ printf( "task %" PRIdrtems_task_argument " has started.\n", my_number);
rtems_event_receive(1, RTEMS_WAIT | RTEMS_EVENT_ANY, 0, &out);
- printf( "task %i ending.\n", my_number);
+ printf( "task %" PRIdrtems_task_argument " ending.\n", my_number);
rtems_task_delete(RTEMS_SELF);
}