summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
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
parentMisc. warning fixes. (diff)
downloadrtems-17c75334105d505ec89956e9fea31060e6a3ad61.tar.bz2
Use %ld to print *.tv_nsec.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/psxclock/init.c2
-rw-r--r--testsuites/psxtests/psxsysconf/init.c14
-rw-r--r--testsuites/psxtests/psxtimer01/psxtimer.c4
3 files changed, 10 insertions, 10 deletions
diff --git a/testsuites/psxtests/psxclock/init.c b/testsuites/psxtests/psxclock/init.c
index 03a394a719..41fd228875 100644
--- a/testsuites/psxtests/psxclock/init.c
+++ b/testsuites/psxtests/psxclock/init.c
@@ -110,7 +110,7 @@ rtems_task Init(
/* print new times to make sure it has changed and we can get the realtime */
sc = clock_gettime( CLOCK_PROCESS_CPUTIME, &tv );
rtems_test_assert( !sc );
- printf("Time since boot: (%" PRItime_t ", %d)\n", tv.tv_sec,tv.tv_nsec );
+ printf("Time since boot: (%" PRItime_t ", %ld)\n", tv.tv_sec,tv.tv_nsec );
sc = clock_gettime( CLOCK_REALTIME, &tv );
rtems_test_assert( !sc );
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
diff --git a/testsuites/psxtests/psxtimer01/psxtimer.c b/testsuites/psxtests/psxtimer01/psxtimer.c
index a2dc3b88fb..fd5f343cd7 100644
--- a/testsuites/psxtests/psxtimer01/psxtimer.c
+++ b/testsuites/psxtests/psxtimer01/psxtimer.c
@@ -121,7 +121,7 @@ void * task_a (void *arg)
rtems_test_exit(0);
}
printf(
- "task A: timer_settime - value=%" PRItime_t ":%d interval=%" PRItime_t ":%d\n",
+ "task A: timer_settime - value=%" PRItime_t ":%ld interval=%" PRItime_t ":%ld\n",
timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec,
timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec
);
@@ -307,7 +307,7 @@ void * task_c (void *arg)
rtems_test_exit(0);
}
printf(
- "task C: timer_gettime - %" PRItime_t ":%d remaining from %" PRItime_t ":%d\n",
+ "task C: timer_gettime - %" PRItime_t ":%ld remaining from %" PRItime_t ":%ld\n",
timergetdata.it_value.tv_sec, timergetdata.it_value.tv_nsec,
timergetdata.it_interval.tv_sec, timergetdata.it_interval.tv_nsec
);