diff options
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/sptests/sp50/init.c | 3 | ||||
-rw-r--r-- | testsuites/sptests/spclockget/init.c | 3 |
3 files changed, 9 insertions, 2 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index 8112451f7b..007e849b15 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,5 +1,10 @@ 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> + * sp50/init.c, spclockget/init.c: Include "pritime.h". + Use PRIdtime_t to print time_t. + +2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> + * configure.ac: Check for size of time_t. 2011-09-29 Ralf Corsépius <ralf.corsepius@rtems.org> diff --git a/testsuites/sptests/sp50/init.c b/testsuites/sptests/sp50/init.c index 2eb5599dc0..67b199a7bd 100644 --- a/testsuites/sptests/sp50/init.c +++ b/testsuites/sptests/sp50/init.c @@ -14,6 +14,7 @@ #endif #include <tmacros.h> +#include "pritime.h" volatile int Fired; volatile bool timerRan; @@ -70,7 +71,7 @@ rtems_task Init( sc = rtems_clock_get_uptime( &uptime ); directive_failed( sc, "rtems_clock_get_uptime" ); - printf( "Timer fired at %" PRItime_t "\n", uptime.tv_sec ); + printf( "Timer fired at %" PRIdtime_t "\n", uptime.tv_sec ); } if ( Fired >= 10 ) { diff --git a/testsuites/sptests/spclockget/init.c b/testsuites/sptests/spclockget/init.c index 070cfe281b..84d95c96df 100644 --- a/testsuites/sptests/spclockget/init.c +++ b/testsuites/sptests/spclockget/init.c @@ -14,6 +14,7 @@ #endif #include <tmacros.h> +#include "pritime.h" rtems_task Init( rtems_task_argument ignored @@ -69,7 +70,7 @@ rtems_task Init( sc = rtems_clock_get( RTEMS_CLOCK_GET_TIME_VALUE, &timev ); directive_failed( sc, "rtems_clock_get -- Time Value" ); printf( - "Init - rtems_clock_get - Time Value = %" PRItime_t "\n", + "Init - rtems_clock_get - Time Value = %" PRIdtime_t "\n", timev.tv_sec ); |