diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-09-30 02:53:32 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-09-30 02:53:32 +0000 |
commit | 4562dd8789617f8976b712cad375a8f715b33d97 (patch) | |
tree | eb8773247e8e2f272c29ff2f5a75f7f783289ec2 /testsuites/psxtests/psxclock | |
parent | 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-4562dd8789617f8976b712cad375a8f715b33d97.tar.bz2 |
2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* psx01/init.c, psx07/init.c, psx09/init.c, psx12/init.c,
psxclock/init.c, psxtimer01/psxtimer.c: Include "pritime.h".
Use PRIdtime_t to print time_t.
Diffstat (limited to 'testsuites/psxtests/psxclock')
-rw-r--r-- | testsuites/psxtests/psxclock/init.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/testsuites/psxtests/psxclock/init.c b/testsuites/psxtests/psxclock/init.c index e46fdbaac9..9945bbdd5b 100644 --- a/testsuites/psxtests/psxclock/init.c +++ b/testsuites/psxtests/psxclock/init.c @@ -13,10 +13,12 @@ #include "config.h" #endif -#include <pmacros.h> #include <time.h> #include <errno.h> +#include "pmacros.h" +#include "pritime.h" + void check_enosys(int status); void check_enosys(int status) @@ -84,7 +86,7 @@ rtems_task Init( puts( "Init: clock_getres - SUCCESSFUL" ); sc = clock_getres( CLOCK_REALTIME, &tv ); - printf( "Init: resolution = sec (%ld), nsec (%ld)\n", tv.tv_sec, tv.tv_nsec ); + printf( "Init: resolution = sec (%" PRIdtime_t "), nsec (%ld)\n", tv.tv_sec, tv.tv_nsec ); rtems_test_assert( !sc ); /* set the time of day, and print our buffer in multiple ways */ @@ -114,7 +116,7 @@ rtems_task Init( /* print new times to make sure it has changed and we can get the realtime */ sc = clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &tv ); rtems_test_assert( !sc ); - printf("Time since boot: (%" PRItime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec ); + printf("Time since boot: (%" PRIdtime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec ); sc = clock_gettime( CLOCK_REALTIME, &tv ); rtems_test_assert( !sc ); @@ -207,7 +209,7 @@ rtems_task Init( /* check the time remaining */ - printf( "Init: sec (%ld), nsec (%ld) remaining\n", tr.tv_sec, tr.tv_nsec ); + printf( "Init: sec (%" PRIdtime_t "), nsec (%ld) remaining\n", tr.tv_sec, tr.tv_nsec ); rtems_test_assert( !tr.tv_sec && !tr.tv_nsec ); puts( "Init: nanosleep - 1.35 seconds" ); |