[rtems commit] samples/base_sp: Fix printf() warning

Joel Sherrill joel at rtems.org
Thu Oct 9 15:03:39 UTC 2014


Module:    rtems
Branch:    master
Commit:    eb7f306dc81a01d70fb5c383832e1bca91e75f68
Changeset: http://git.rtems.org/rtems/commit/?id=eb7f306dc81a01d70fb5c383832e1bca91e75f68

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Tue Oct  7 17:43:35 2014 -0500

samples/base_sp: Fix printf() warning

---

 testsuites/samples/base_sp/apptask.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/testsuites/samples/base_sp/apptask.c b/testsuites/samples/base_sp/apptask.c
index c39d64f..f450f71 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();



More information about the vc mailing list