From 51f5d64cf4b03f9ca9167d7c8c34ffdcc4182c31 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 2 Apr 1997 16:26:39 +0000 Subject: corrected printf format to avoid warning --- testsuites/psxtests/psx05/init.c | 2 +- testsuites/psxtests/psx06/init.c | 2 +- testsuites/psxtests/psx06/task.c | 2 +- testsuites/psxtests/psx06/task2.c | 2 +- testsuites/sptests/sp15/system.h | 4 ++-- testsuites/sptests/sp16/system.h | 8 ++++---- testsuites/sptests/sp25/system.h | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) (limited to 'testsuites') diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c index ec79d6db37..bade436f6f 100644 --- a/testsuites/psxtests/psx05/init.c +++ b/testsuites/psxtests/psx05/init.c @@ -14,7 +14,7 @@ #include "system.h" #include -#define MUTEX_BAD_ID -2 +#define MUTEX_BAD_ID 0xfffffffe void Print_mutexattr( char *msg, diff --git a/testsuites/psxtests/psx06/init.c b/testsuites/psxtests/psx06/init.c index f35bcbb926..bc66cf3ef2 100644 --- a/testsuites/psxtests/psx06/init.c +++ b/testsuites/psxtests/psx06/init.c @@ -94,7 +94,7 @@ void *POSIX_Init( /* switch to task 1 */ key_data = pthread_getspecific( Key_id ); - printf( "Init: Got the key value of %d\n", + printf( "Init: Got the key value of %ld\n", (rtems_unsigned32 *)key_data - Data_array ); remaining = sleep( 3 ); diff --git a/testsuites/psxtests/psx06/task.c b/testsuites/psxtests/psx06/task.c index a4ebc285f4..98e34117b5 100644 --- a/testsuites/psxtests/psx06/task.c +++ b/testsuites/psxtests/psx06/task.c @@ -36,7 +36,7 @@ void *Task_1( assert( !status ); key_data = pthread_getspecific( Key_id ); - printf( "Task_1: Got the key value of %d\n", + printf( "Task_1: Got the key value of %ld\n", (rtems_unsigned32 *)key_data - Data_array ); if ( status ) printf( "status = %d\n", status ); diff --git a/testsuites/psxtests/psx06/task2.c b/testsuites/psxtests/psx06/task2.c index 90569f993c..9332b2b3d4 100644 --- a/testsuites/psxtests/psx06/task2.c +++ b/testsuites/psxtests/psx06/task2.c @@ -37,7 +37,7 @@ void *Task_2( assert( !status ); key_data = pthread_getspecific( Key_id ); - printf( "Task_2: Got the key value of %d\n", + printf( "Task_2: Got the key value of %ld\n", (rtems_unsigned32 *)key_data - Data_array ); if ( status ) printf( "status = %d\n", status ); diff --git a/testsuites/sptests/sp15/system.h b/testsuites/sptests/sp15/system.h index 9290b40694..7e51d8f560 100644 --- a/testsuites/sptests/sp15/system.h +++ b/testsuites/sptests/sp15/system.h @@ -52,9 +52,9 @@ TEST_EXTERN rtems_unsigned8 Area_1[4096] CPU_STRUCTURE_ALIGNMENT; TEST_EXTERN rtems_unsigned8 Area_2[274] CPU_STRUCTURE_ALIGNMENT; #define Put_address_from_area_1( _to_be_printed ) \ - printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) + printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) #define Put_address_from_area_2( _to_be_printed ) \ - printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 ) + printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 ) /* end of include file */ diff --git a/testsuites/sptests/sp16/system.h b/testsuites/sptests/sp16/system.h index 1eddd5277e..7eaadf56f5 100644 --- a/testsuites/sptests/sp16/system.h +++ b/testsuites/sptests/sp16/system.h @@ -71,15 +71,15 @@ TEST_EXTERN rtems_unsigned8 Area_4[8192] CPU_STRUCTURE_ALIGNMENT; #define BASE_PRIORITY 140 #define Put_address_from_area_1( _to_be_printed ) \ - printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) + printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) #define Put_address_from_area_2( _to_be_printed ) \ - printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 ) + printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 ) #define Put_address_from_area_3( _to_be_printed ) \ - printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 ) + printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 ) #define Put_address_from_area_4( _to_be_printed ) \ - printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 ) + printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 ) /* end of include file */ diff --git a/testsuites/sptests/sp25/system.h b/testsuites/sptests/sp25/system.h index 6f7ec4de99..9a700cfa59 100644 --- a/testsuites/sptests/sp25/system.h +++ b/testsuites/sptests/sp25/system.h @@ -51,6 +51,6 @@ TEST_EXTERN rtems_unsigned8 Area_1[64000] CPU_STRUCTURE_ALIGNMENT; #define BASE_PRIORITY 140 #define Put_address_from_area_1( _to_be_printed ) \ - printf( "0x%08x", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) + printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) /* end of include file */ -- cgit v1.2.3