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/sp15/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/sp15/system.h')
-rw-r--r-- | c/src/tests/sptests/sp15/system.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/tests/sptests/sp15/system.h b/c/src/tests/sptests/sp15/system.h index 7e51d8f560..560e2b4dee 100644 --- a/c/src/tests/sptests/sp15/system.h +++ b/c/src/tests/sptests/sp15/system.h @@ -52,9 +52,11 @@ 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%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 ) ) /* end of include file */ |