summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp15
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-07 21:33:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-04-07 21:33:28 +0000
commitf8700f776e4457614beefa4245a6a895344a355d (patch)
tree31a418b0b688edde7017f2d8d9c77b7ce20effbd /testsuites/sptests/sp15
parentadded ifdef to avoid warning for unused variable. (diff)
downloadrtems-f8700f776e4457614beefa4245a6a895344a355d.tar.bz2
corrected printf specifications and added casts as necessary to eliminate
warnings.
Diffstat (limited to 'testsuites/sptests/sp15')
-rw-r--r--testsuites/sptests/sp15/system.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/sptests/sp15/system.h b/testsuites/sptests/sp15/system.h
index 7e51d8f560..560e2b4dee 100644
--- a/testsuites/sptests/sp15/system.h
+++ b/testsuites/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 */