Changeset 17c7533 in rtems


Ignore:
Timestamp:
Oct 27, 2009, 3:57:28 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
2441f74
Parents:
669ad957
Message:

Use %ld to print *.tv_nsec.

Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxclock/init.c

    r669ad957 r17c7533  
    111111  sc = clock_gettime( CLOCK_PROCESS_CPUTIME, &tv );
    112112  rtems_test_assert( !sc );
    113   printf("Time since boot: (%" PRItime_t ", %d)\n", tv.tv_sec,tv.tv_nsec );
     113  printf("Time since boot: (%" PRItime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec );
    114114
    115115  sc = clock_gettime( CLOCK_REALTIME, &tv );
  • testsuites/psxtests/psxsysconf/init.c

    r669ad957 r17c7533  
    3535 
    3636  sc = sysconf( _SC_CLK_TCK );
    37   printf( "sysconf - _SC_CLK_TCK=%d\n", sc );
     37  printf( "sysconf - _SC_CLK_TCK=%ld\n", sc );
    3838  if ( sc == -1 )
    3939   rtems_test_exit(0);
    4040
    4141  sc = sysconf( _SC_OPEN_MAX );
    42   printf( "sysconf - _SC_OPEN_MAX=%d\n", sc );
     42  printf( "sysconf - _SC_OPEN_MAX=%ld\n", sc );
    4343  if ( sc == -1 )
    4444   rtems_test_exit(0);
    4545
    4646  sc = sysconf( _SC_GETPW_R_SIZE_MAX );
    47   printf( "sysconf - _SC_GETPW_R_SIZE_MAX=%d\n", sc );
     47  printf( "sysconf - _SC_GETPW_R_SIZE_MAX=%ld\n", sc );
    4848  if ( sc == -1 )
    4949   rtems_test_exit(0);
    5050
    5151  sc = sysconf( _SC_PAGESIZE );
    52   printf( "sysconf - _SC_PAGESIZE=%d\n", sc );
     52  printf( "sysconf - _SC_PAGESIZE=%ld\n", sc );
    5353  if ( sc == -1 )
    5454   rtems_test_exit(0);
    5555
    5656  sc = getpagesize();
    57   printf( "getpagesize = %d\n", sc );
     57  printf( "getpagesize = %ld\n", sc );
    5858  if ( sc == -1 )
    5959   rtems_test_exit(0);
    6060
    6161  sc = sysconf( 0x12345678 );
    62   printf( "sysconf - bad parameter = %d errno=%s\n", sc, strerror(errno) );
     62  printf( "sysconf - bad parameter = %ld errno=%s\n", sc, strerror(errno) );
    6363  if ( (sc != -1) || (errno != EINVAL) )
    6464   rtems_test_exit(0);
     
    6767  /* Solaris _SC_STACK_PROT - 515 */
    6868  sc = sysconf( _SC_PAGESIZE );
    69   printf( "sysconf - (SPARC only) _SC_STACK_PROT=%d\n", sc );
     69  printf( "sysconf - (SPARC only) _SC_STACK_PROT=%ld\n", sc );
    7070  if ( sc == -1 )
    7171   rtems_test_exit(0);
  • testsuites/psxtests/psxtimer01/psxtimer.c

    r669ad957 r17c7533  
    122122   }
    123123   printf(
    124     "task A: timer_settime - value=%" PRItime_t ":%d interval=%" PRItime_t ":%d\n",
     124    "task A: timer_settime - value=%" PRItime_t ":%ld interval=%" PRItime_t ":%ld\n",
    125125    timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec,
    126126    timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec
     
    308308       }
    309309       printf(
    310          "task C: timer_gettime - %" PRItime_t ":%d remaining from %" PRItime_t ":%d\n",
     310         "task C: timer_gettime - %" PRItime_t ":%ld remaining from %" PRItime_t ":%ld\n",
    311311         timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec,
    312312         timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec
Note: See TracChangeset for help on using the changeset viewer.