Changeset 4562dd8 in rtems
- Timestamp:
- 09/30/11 02:53:32 (12 years ago)
- Branches:
- 4.11, 5, master
- Children:
- d44c86b
- Parents:
- f57f5ce2
- Location:
- testsuites/psxtests
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/psxtests/ChangeLog
rf57f5ce2 r4562dd8 1 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> 2 3 * psx01/init.c, psx07/init.c, psx09/init.c, psx12/init.c, 4 psxclock/init.c, psxtimer01/psxtimer.c: Include "pritime.h". 5 Use PRIdtime_t to print time_t. 6 1 7 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> 2 8 -
testsuites/psxtests/psx01/init.c
rf57f5ce2 r4562dd8 14 14 #endif 15 15 16 #include <sched.h> 17 #include <sys/utsname.h> 18 16 19 #define CONFIGURE_INIT 17 20 #include "system.h" 18 #include <sched.h> 19 #include <sys/utsname.h> 21 #include "pritime.h" 20 22 21 23 void *POSIX_Init( … … 88 90 status = sched_rr_get_interval( getpid(), &tr ); 89 91 printf( 90 "Init: Round Robin quantum is % ldseconds, %ld nanoseconds\n",92 "Init: Round Robin quantum is %" PRIdtime_t " seconds, %ld nanoseconds\n", 91 93 tr.tv_sec, 92 94 tr.tv_nsec -
testsuites/psxtests/psx07/init.c
rf57f5ce2 r4562dd8 33 33 #include <errno.h> 34 34 #include "tmacros.h" 35 #include "pritime.h" 35 36 36 37 void print_schedparam( … … 48 49 printf( "%ssched_ss_low_priority = %d\n", 49 50 prefix, schedparam->sched_ss_low_priority ); 50 printf( "%ssched_ss_replenish_period = (% ld, %ld)\n", prefix,51 printf( "%ssched_ss_replenish_period = (%" PRIdtime_t ", %ld)\n", prefix, 51 52 schedparam->sched_ss_repl_period.tv_sec, 52 53 schedparam->sched_ss_repl_period.tv_nsec ); 53 printf( "%ssched_sched_ss_initial_budget = (% ld, %ld)\n", prefix,54 printf( "%ssched_sched_ss_initial_budget = (%" PRIdtime_t ", %ld)\n", prefix, 54 55 schedparam->sched_ss_init_budget.tv_sec, 55 56 schedparam->sched_ss_init_budget.tv_nsec ); -
testsuites/psxtests/psx09/init.c
rf57f5ce2 r4562dd8 19 19 #include "system.h" 20 20 #include <errno.h> 21 #include "pritime.h" 21 22 22 23 void print_schedparam( … … 38 39 printf( "%ssched_ss_low_priority = %d\n", 39 40 prefix, schedparam->sched_ss_low_priority ); 40 printf( "%ssched_ss_repl_period = (% ld, %ld)\n", prefix,41 printf( "%ssched_ss_repl_period = (%" PRIdtime_t ", %ld)\n", prefix, 41 42 schedparam->sched_ss_repl_period.tv_sec, 42 43 schedparam->sched_ss_repl_period.tv_nsec ); 43 printf( "%ssched_ss_init_budget = (% ld, %ld)\n", prefix,44 printf( "%ssched_ss_init_budget = (%" PRIdtime_t ", %ld)\n", prefix, 44 45 schedparam->sched_ss_init_budget.tv_sec, 45 46 schedparam->sched_ss_init_budget.tv_nsec ); -
testsuites/psxtests/psx12/init.c
rf57f5ce2 r4562dd8 19 19 #include "system.h" 20 20 #include <errno.h> 21 #include "pritime.h" 21 22 22 23 void print_schedparam( … … 34 35 printf( "%ssched_ss_low_priority = %d\n", 35 36 prefix, schedparam->sched_ss_low_priority ); 36 printf( "%ssched_ss_repl_period = (% ld, %ld)\n", prefix,37 printf( "%ssched_ss_repl_period = (%" PRIdtime_t ", %ld)\n", prefix, 37 38 schedparam->sched_ss_repl_period.tv_sec, 38 39 schedparam->sched_ss_repl_period.tv_nsec ); 39 printf( "%ssched_ss_init_budget = (% ld, %ld)\n", prefix,40 printf( "%ssched_ss_init_budget = (%" PRIdtime_t ", %ld)\n", prefix, 40 41 schedparam->sched_ss_init_budget.tv_sec, 41 42 schedparam->sched_ss_init_budget.tv_nsec ); -
testsuites/psxtests/psxclock/init.c
rf57f5ce2 r4562dd8 14 14 #endif 15 15 16 #include <pmacros.h>17 16 #include <time.h> 18 17 #include <errno.h> 18 19 #include "pmacros.h" 20 #include "pritime.h" 19 21 20 22 void check_enosys(int status); … … 85 87 puts( "Init: clock_getres - SUCCESSFUL" ); 86 88 sc = clock_getres( CLOCK_REALTIME, &tv ); 87 printf( "Init: resolution = sec (% ld), nsec (%ld)\n", tv.tv_sec, tv.tv_nsec );89 printf( "Init: resolution = sec (%" PRIdtime_t "), nsec (%ld)\n", tv.tv_sec, tv.tv_nsec ); 88 90 rtems_test_assert( !sc ); 89 91 … … 115 117 sc = clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &tv ); 116 118 rtems_test_assert( !sc ); 117 printf("Time since boot: (%" PRI time_t ", %ld)\n", tv.tv_sec,tv.tv_nsec );119 printf("Time since boot: (%" PRIdtime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec ); 118 120 119 121 sc = clock_gettime( CLOCK_REALTIME, &tv ); … … 208 210 /* check the time remaining */ 209 211 210 printf( "Init: sec (% ld), nsec (%ld) remaining\n", tr.tv_sec, tr.tv_nsec );212 printf( "Init: sec (%" PRIdtime_t "), nsec (%ld) remaining\n", tr.tv_sec, tr.tv_nsec ); 211 213 rtems_test_assert( !tr.tv_sec && !tr.tv_nsec ); 212 214 -
testsuites/psxtests/psxtimer01/psxtimer.c
rf57f5ce2 r4562dd8 36 36 #include <stdio.h> /* console facilities */ 37 37 #include <rtems/score/timespec.h> 38 #include "pritime.h" 38 39 39 40 void StopTimer( … … 126 127 } 127 128 printf( 128 "task A: timer_settime - value=%" PRI time_t ":%ld interval=%" PRItime_t ":%ld\n",129 "task A: timer_settime - value=%" PRIdtime_t ":%ld interval=%" PRIdtime_t ":%ld\n", 129 130 timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec, 130 131 timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec … … 312 313 } 313 314 printf( 314 "task C: timer_gettime - %" PRI time_t ":%ld remaining from %" PRItime_t ":%ld\n",315 "task C: timer_gettime - %" PRIdtime_t ":%ld remaining from %" PRIdtime_t ":%ld\n", 315 316 timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec, 316 317 timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec
Note: See TracChangeset
for help on using the changeset viewer.