diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-07 21:33:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-04-07 21:33:28 +0000 |
commit | f8700f776e4457614beefa4245a6a895344a355d (patch) | |
tree | 31a418b0b688edde7017f2d8d9c77b7ce20effbd /c/src/tests/sptests/sp16/system.h | |
parent | added ifdef to avoid warning for unused variable. (diff) | |
download | rtems-f8700f776e4457614beefa4245a6a895344a355d.tar.bz2 |
corrected printf specifications and added casts as necessary to eliminate
warnings.
Diffstat (limited to 'c/src/tests/sptests/sp16/system.h')
-rw-r--r-- | c/src/tests/sptests/sp16/system.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/c/src/tests/sptests/sp16/system.h b/c/src/tests/sptests/sp16/system.h index 7eaadf56f5..38b600c2da 100644 --- a/c/src/tests/sptests/sp16/system.h +++ b/c/src/tests/sptests/sp16/system.h @@ -71,15 +71,19 @@ 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%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_1 ) + printf( "0x%08lx", \ + (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_1 ) ) #define Put_address_from_area_2( _to_be_printed ) \ - printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_2 ) + printf( "0x%08lx", \ + (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_2 ) ) #define Put_address_from_area_3( _to_be_printed ) \ - printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_3 ) + printf( "0x%08lx", \ + (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_3 ) ) #define Put_address_from_area_4( _to_be_printed ) \ - printf( "0x%08lx", ((rtems_unsigned8 *)(_to_be_printed)) - Area_4 ) + printf( "0x%08lx", \ + (unsigned long) ((rtems_unsigned8 *)(_to_be_printed) - Area_4 ) ) /* end of include file */ |