summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/base_mp/apptask.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-04-21 20:15:40 -0500
committerJoel Sherrill <joel@rtems.org>2016-06-16 09:03:23 -0500
commit07ac1735c845eb093e17687a912521f804e5f362 (patch)
tree4c7aa3e21cf7cd6139cdb424f5200788e9cceb57 /testsuites/samples/base_mp/apptask.c
parentlibchip/shmdr/send.c: Fix warning and clean up (diff)
downloadrtems-07ac1735c845eb093e17687a912521f804e5f362.tar.bz2
samples/base_mp/apptask.c: Fix warning and clean up
Diffstat (limited to 'testsuites/samples/base_mp/apptask.c')
-rw-r--r--testsuites/samples/base_mp/apptask.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/testsuites/samples/base_mp/apptask.c b/testsuites/samples/base_mp/apptask.c
index 1414549087..e54e08afe8 100644
--- a/testsuites/samples/base_mp/apptask.c
+++ b/testsuites/samples/base_mp/apptask.c
@@ -1,15 +1,13 @@
-/* Application_task
+/**
+ * @file
*
- * This routine is as an example of an application task which
- * prints a message including its RTEMS task id. This task
- * then invokes exit to return to the monitor.
- *
- * Input parameters:
- * node - processor's node number
- *
- * Output parameters: NONE
- *
- * COPYRIGHT (c) 1989-1999.
+ * This routine is as an example of an application task which
+ * prints a message including its RTEMS task id. This task
+ * then invokes exit to return to the monitor.
+ */
+
+/*
+ * COPYRIGHT (c) 1989-1999, 2016.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -34,7 +32,8 @@ rtems_task Application_task(
rtems_id tid;
rtems_status_code status;
- status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
+ rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &tid );
+ (void) status;
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 );
TEST_END();