[PATCH 23/42] sptests/sp33/init.c: Correct printf() warning

Joel Sherrill joel.sherrill at oarcorp.com
Mon Mar 23 14:39:21 UTC 2015


---
 testsuites/sptests/sp33/init.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/testsuites/sptests/sp33/init.c b/testsuites/sptests/sp33/init.c
index 828c374..579cd65 100644
--- a/testsuites/sptests/sp33/init.c
+++ b/testsuites/sptests/sp33/init.c
@@ -44,11 +44,12 @@ rtems_task Waiter(
 )
 {
   rtems_status_code status;
+  int               waiter = (int) number;
 
-  printf( "Waiter %" PRIdrtems_task_argument " waiting on barrier\n", number );
+  printf( "Waiter %d waiting on barrier\n", waiter );
   status = rtems_barrier_wait( Barrier, RTEMS_NO_TIMEOUT );
 
-  printf( "Waiter %" PRIdrtems_task_argument " back from barrier\n", number );
+  printf( "Waiter %d back from barrier\n", waiter );
 
   if ( SuccessfulCase == TRUE ) {
     directive_failed(status, "rtems_barrier_wait");
-- 
1.9.3




More information about the devel mailing list