summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-02-08 07:23:42 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-02-08 07:23:42 +0000
commite45c13ca70fb3874d2e3a99932fe8613f08450de (patch)
treeafa7051ff61de7bd01a31e80317ff9aeb0045b3c /testsuites/sptests
parent2011-02-08 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-e45c13ca70fb3874d2e3a99932fe8613f08450de.tar.bz2
2011-02-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* sp69/init.c: Use "ld" instead of PRId32 to print struct timespec->tv_nsec.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/ChangeLog2
-rw-r--r--testsuites/sptests/sp69/init.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index 1f84481493..2a4eeec0ce 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,5 +1,7 @@
2011-02-08 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * sp69/init.c: Use "ld" instead of PRId32 to print
+ struct timespec->tv_nsec.
* sp19/inttest.h: Use PRIx32 instead of "lx".
2011-02-02 Joel Sherrill <joel.sherrilL@OARcorp.com>
diff --git a/testsuites/sptests/sp69/init.c b/testsuites/sptests/sp69/init.c
index 3e0343d7e6..3cb0fc9d2b 100644
--- a/testsuites/sptests/sp69/init.c
+++ b/testsuites/sptests/sp69/init.c
@@ -107,12 +107,13 @@ rtems_task Init(
/* Check status values. */
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
+ /* Note: POSIX mandates struct timespec->tv_nsec to be a "long" */
printf(
- "wall time should be ~600000000 is %" PRId32 "\n",
+ "wall time should be ~600000000 is %ld\n",
period_status.since_last_period.tv_nsec
);
printf(
- "cpu time should be ~100000000 is %" PRId32 "\n",
+ "cpu time should be ~100000000 is %ld\n",
period_status.executed_since_last_period.tv_nsec
);
rtems_test_assert( period_status.since_last_period.tv_sec == 0 );