From f8700f776e4457614beefa4245a6a895344a355d Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 7 Apr 1997 21:33:28 +0000 Subject: corrected printf specifications and added casts as necessary to eliminate warnings. --- testsuites/psxtests/psx06/init.c | 2 +- testsuites/psxtests/psx06/task.c | 2 +- testsuites/psxtests/psx06/task2.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuites/psxtests') diff --git a/testsuites/psxtests/psx06/init.c b/testsuites/psxtests/psx06/init.c index bc66cf3ef2..b07fad1101 100644 --- a/testsuites/psxtests/psx06/init.c +++ b/testsuites/psxtests/psx06/init.c @@ -95,7 +95,7 @@ void *POSIX_Init( key_data = pthread_getspecific( Key_id ); printf( "Init: Got the key value of %ld\n", - (rtems_unsigned32 *)key_data - Data_array ); + (unsigned long) ((rtems_unsigned32 *)key_data - Data_array) ); remaining = sleep( 3 ); if ( remaining ) diff --git a/testsuites/psxtests/psx06/task.c b/testsuites/psxtests/psx06/task.c index 98e34117b5..706c8ccef9 100644 --- a/testsuites/psxtests/psx06/task.c +++ b/testsuites/psxtests/psx06/task.c @@ -37,7 +37,7 @@ void *Task_1( key_data = pthread_getspecific( Key_id ); printf( "Task_1: Got the key value of %ld\n", - (rtems_unsigned32 *)key_data - Data_array ); + (unsigned long) ((rtems_unsigned32 *)key_data - Data_array) ); if ( status ) printf( "status = %d\n", status ); assert( !status ); diff --git a/testsuites/psxtests/psx06/task2.c b/testsuites/psxtests/psx06/task2.c index 9332b2b3d4..700e10fc9e 100644 --- a/testsuites/psxtests/psx06/task2.c +++ b/testsuites/psxtests/psx06/task2.c @@ -38,7 +38,7 @@ void *Task_2( key_data = pthread_getspecific( Key_id ); printf( "Task_2: Got the key value of %ld\n", - (rtems_unsigned32 *)key_data - Data_array ); + (unsigned long) ((rtems_unsigned32 *)key_data - Data_array) ); if ( status ) printf( "status = %d\n", status ); assert( !status ); -- cgit v1.2.3