Changeset 4562dd8 in rtems


Ignore:
Timestamp:
09/30/11 02:53:32 (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, 5, master
Children:
d44c86b
Parents:
f57f5ce2
Message:

2011-09-30 Ralf Corsépius <ralf.corsepius@…>

  • 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.
Location:
testsuites/psxtests
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    rf57f5ce2 r4562dd8  
     12011-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
    172011-09-30      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • testsuites/psxtests/psx01/init.c

    rf57f5ce2 r4562dd8  
    1414#endif
    1515
     16#include <sched.h>
     17#include <sys/utsname.h>
     18
    1619#define CONFIGURE_INIT
    1720#include "system.h"
    18 #include <sched.h>
    19 #include <sys/utsname.h>
     21#include "pritime.h"
    2022
    2123void *POSIX_Init(
     
    8890  status = sched_rr_get_interval( getpid(), &tr );
    8991  printf(
    90     "Init: Round Robin quantum is %ld seconds, %ld nanoseconds\n",
     92    "Init: Round Robin quantum is %" PRIdtime_t " seconds, %ld nanoseconds\n",
    9193    tr.tv_sec,
    9294    tr.tv_nsec
  • testsuites/psxtests/psx07/init.c

    rf57f5ce2 r4562dd8  
    3333#include <errno.h>
    3434#include "tmacros.h"
     35#include "pritime.h"
    3536
    3637void print_schedparam(
     
    4849  printf( "%ssched_ss_low_priority     = %d\n",
    4950     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,
    5152     schedparam->sched_ss_repl_period.tv_sec,
    5253     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,
    5455     schedparam->sched_ss_init_budget.tv_sec,
    5556     schedparam->sched_ss_init_budget.tv_nsec );
  • testsuites/psxtests/psx09/init.c

    rf57f5ce2 r4562dd8  
    1919#include "system.h"
    2020#include <errno.h>
     21#include "pritime.h"
    2122
    2223void print_schedparam(
     
    3839  printf( "%ssched_ss_low_priority     = %d\n",
    3940      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,
    4142     schedparam->sched_ss_repl_period.tv_sec,
    4243     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,
    4445     schedparam->sched_ss_init_budget.tv_sec,
    4546     schedparam->sched_ss_init_budget.tv_nsec );
  • testsuites/psxtests/psx12/init.c

    rf57f5ce2 r4562dd8  
    1919#include "system.h"
    2020#include <errno.h>
     21#include "pritime.h"
    2122
    2223void print_schedparam(
     
    3435  printf( "%ssched_ss_low_priority     = %d\n",
    3536     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,
    3738     schedparam->sched_ss_repl_period.tv_sec,
    3839     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,
    4041     schedparam->sched_ss_init_budget.tv_sec,
    4142     schedparam->sched_ss_init_budget.tv_nsec );
  • testsuites/psxtests/psxclock/init.c

    rf57f5ce2 r4562dd8  
    1414#endif
    1515
    16 #include <pmacros.h>
    1716#include <time.h>
    1817#include <errno.h>
     18
     19#include "pmacros.h"
     20#include "pritime.h"
    1921
    2022void check_enosys(int status);
     
    8587  puts( "Init: clock_getres - SUCCESSFUL" );
    8688  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 );
    8890  rtems_test_assert( !sc );
    8991
     
    115117  sc = clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &tv );
    116118  rtems_test_assert( !sc );
    117   printf("Time since boot: (%" PRItime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec );
     119  printf("Time since boot: (%" PRIdtime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec );
    118120
    119121  sc = clock_gettime( CLOCK_REALTIME, &tv );
     
    208210  /* check the time remaining */
    209211
    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 );
    211213  rtems_test_assert( !tr.tv_sec && !tr.tv_nsec );
    212214
  • testsuites/psxtests/psxtimer01/psxtimer.c

    rf57f5ce2 r4562dd8  
    3636#include <stdio.h>    /* console facilities */
    3737#include <rtems/score/timespec.h>
     38#include "pritime.h"
    3839
    3940void StopTimer(
     
    126127   }
    127128   printf(
    128     "task A: timer_settime - value=%" PRItime_t ":%ld interval=%" PRItime_t ":%ld\n",
     129    "task A: timer_settime - value=%" PRIdtime_t ":%ld interval=%" PRIdtime_t ":%ld\n",
    129130    timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec,
    130131    timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec
     
    312313       }
    313314       printf(
    314          "task C: timer_gettime - %" PRItime_t ":%ld remaining from %" PRItime_t ":%ld\n",
     315         "task C: timer_gettime - %" PRIdtime_t ":%ld remaining from %" PRIdtime_t ":%ld\n",
    315316         timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec,
    316317         timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec
Note: See TracChangeset for help on using the changeset viewer.