From 17c75334105d505ec89956e9fea31060e6a3ad61 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 27 Oct 2009 03:57:28 +0000 Subject: Use %ld to print *.tv_nsec. --- testsuites/psxtests/psxsysconf/init.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'testsuites/psxtests/psxsysconf/init.c') 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 -- cgit v1.2.3