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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.