2011-02-08 Ralf Corsépius <ralf.corsepius@rtems.org>

* sp69/init.c: Use "ld" instead of PRId32 to print
	struct timespec->tv_nsec.
This commit is contained in:
Ralf Corsepius
2011-02-08 07:24:00 +00:00
parent cea600774d
commit e5f7481803
2 changed files with 5 additions and 2 deletions

View File

@@ -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>

View File

@@ -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 );