From f4926e1fde9c4a7b3aaf0dd35d05c8c21c90d59b Mon Sep 17 00:00:00 2001 From: Glenn Humphrey Date: Tue, 15 Dec 2009 18:24:12 +0000 Subject: 2009-12-15 Glenn Humphrey * sp69/init.c: Fixed warnings. --- testsuites/sptests/ChangeLog | 4 ++++ testsuites/sptests/sp69/init.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'testsuites') diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index 1b82a5b20d..8aa77e1390 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,3 +1,7 @@ +2009-12-15 Glenn Humphrey + + * sp69/init.c: Fixed warnings. + 2009-12-10 Joel Sherrill * sp14/sp14.doc, sp14/sp14.scn: doc file have scn contents. Fix and diff --git a/testsuites/sptests/sp69/init.c b/testsuites/sptests/sp69/init.c index 4e62014686..3e0343d7e6 100644 --- a/testsuites/sptests/sp69/init.c +++ b/testsuites/sptests/sp69/init.c @@ -108,11 +108,11 @@ rtems_task Init( /* Check status values. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ printf( - "wall time should be ~600000000 is %d\n", + "wall time should be ~600000000 is %" PRId32 "\n", period_status.since_last_period.tv_nsec ); printf( - "cpu time should be ~100000000 is %d\n", + "cpu time should be ~100000000 is %" PRId32 "\n", period_status.executed_since_last_period.tv_nsec ); rtems_test_assert( period_status.since_last_period.tv_sec == 0 ); @@ -127,11 +127,11 @@ rtems_task Init( ); #else printf( - "wall time should be ~60 is %d\n", + "wall time should be ~60 is %" PRId32 "\n", (int) period_status.since_last_period ); printf( - "cpu time should be ~10 is %d\n", + "cpu time should be ~10 is %" PRId32 "\n", (int) period_status.executed_since_last_period ); rtems_test_assert( period_status.since_last_period >= 60 ); @@ -166,7 +166,7 @@ rtems_task Init( directive_failed( status, "rate_monotonic_get_statistics" ); if ( statistics.missed_count != i ) { printf( - "Expected %d got %d for missed_count\n", + "Expected %d got %" PRIu32 " for missed_count\n", i, statistics.missed_count ); -- cgit v1.2.3