[rtems commit] psxtests/psx15/init.c: Correct printf() warning

Joel Sherril joel at rtems.org
Tue Mar 24 13:18:11 UTC 2015


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Fri Mar 20 10:45:28 2015 -0500

psxtests/psx15/init.c: Correct printf() warning

---

 testsuites/psxtests/psx15/init.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/testsuites/psxtests/psx15/init.c b/testsuites/psxtests/psx15/init.c
index cb0d932..654f0c8 100644
--- a/testsuites/psxtests/psx15/init.c
+++ b/testsuites/psxtests/psx15/init.c
@@ -56,7 +56,9 @@ static void thread_delete_hook(
 
 static void suicide_task(rtems_task_argument arg)
 {
-  printf("suicide task %" PRIuPTR "\n", arg);
+  int me = (int) arg;
+
+  printf("suicide task %d\n", me);
 
   rtems_task_delete(RTEMS_SELF);
   rtems_test_assert(false);



More information about the vc mailing list