summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/base_sp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-07 17:43:35 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-09 10:11:57 -0500
commiteb7f306dc81a01d70fb5c383832e1bca91e75f68 (patch)
tree9996d2ec79d4362d5401c324ffe9aefe928b7ebc /testsuites/samples/base_sp
parentsamples/unlimited: Fix printf() warning and clean up (diff)
downloadrtems-eb7f306dc81a01d70fb5c383832e1bca91e75f68.tar.bz2
samples/base_sp: Fix printf() warning
Diffstat (limited to 'testsuites/samples/base_sp')
-rw-r--r--testsuites/samples/base_sp/apptask.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/samples/base_sp/apptask.c b/testsuites/samples/base_sp/apptask.c
index c39d64fb79..f450f71467 100644
--- a/testsuites/samples/base_sp/apptask.c
+++ b/testsuites/samples/base_sp/apptask.c
@@ -32,13 +32,14 @@ rtems_task Application_task(
{
rtems_id tid;
rtems_status_code status;
+ unsigned int a = (unsigned int) argument;
status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
directive_failed( status, "ident" );
printf(
- "Application task was invoked with argument (%" PRIdrtems_task_argument ") "
- "and has id of 0x%" PRIxrtems_id "\n", argument, tid
+ "Application task was invoked with argument (%d) "
+ "and has id of 0x%" PRIxrtems_id "\n", a, tid
);
TEST_END();