summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxsysconf/init.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 03:57:28 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 03:57:28 +0000
commit17c75334105d505ec89956e9fea31060e6a3ad61 (patch)
treeec0401984cc86096a880d42e82a6e6b52e455653 /testsuites/psxtests/psxsysconf/init.c
parentMisc. warning fixes. (diff)
downloadrtems-17c75334105d505ec89956e9fea31060e6a3ad61.tar.bz2
Use %ld to print *.tv_nsec.
Diffstat (limited to 'testsuites/psxtests/psxsysconf/init.c')
-rw-r--r--testsuites/psxtests/psxsysconf/init.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/testsuites/psxtests/psxsysconf/init.c b/testsuites/psxtests/psxsysconf/init.c
index 1f03ca490b..c220657847 100644
--- a/testsuites/psxtests/psxsysconf/init.c
+++ b/testsuites/psxtests/psxsysconf/init.c
@@ -34,39 +34,39 @@ void *POSIX_Init(
fatal_posix_service_status_errno( sc, EINVAL, "bad conf name" );
sc = sysconf( _SC_CLK_TCK );
- printf( "sysconf - _SC_CLK_TCK=%d\n", sc );
+ printf( "sysconf - _SC_CLK_TCK=%ld\n", sc );
if ( sc == -1 )
rtems_test_exit(0);
sc = sysconf( _SC_OPEN_MAX );
- printf( "sysconf - _SC_OPEN_MAX=%d\n", sc );
+ printf( "sysconf - _SC_OPEN_MAX=%ld\n", sc );
if ( sc == -1 )
rtems_test_exit(0);
sc = sysconf( _SC_GETPW_R_SIZE_MAX );
- printf( "sysconf - _SC_GETPW_R_SIZE_MAX=%d\n", sc );
+ printf( "sysconf - _SC_GETPW_R_SIZE_MAX=%ld\n", sc );
if ( sc == -1 )
rtems_test_exit(0);
sc = sysconf( _SC_PAGESIZE );
- printf( "sysconf - _SC_PAGESIZE=%d\n", sc );
+ printf( "sysconf - _SC_PAGESIZE=%ld\n", sc );
if ( sc == -1 )
rtems_test_exit(0);
sc = getpagesize();
- printf( "getpagesize = %d\n", sc );
+ printf( "getpagesize = %ld\n", sc );
if ( sc == -1 )
rtems_test_exit(0);
sc = sysconf( 0x12345678 );
- printf( "sysconf - bad parameter = %d errno=%s\n", sc, strerror(errno) );
+ printf( "sysconf - bad parameter = %ld errno=%s\n", sc, strerror(errno) );
if ( (sc != -1) || (errno != EINVAL) )
rtems_test_exit(0);
#if defined(__sparc__)
/* Solaris _SC_STACK_PROT - 515 */
sc = sysconf( _SC_PAGESIZE );
- printf( "sysconf - (SPARC only) _SC_STACK_PROT=%d\n", sc );
+ printf( "sysconf - (SPARC only) _SC_STACK_PROT=%ld\n", sc );
if ( sc == -1 )
rtems_test_exit(0);
#endif