summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx01
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-09-30 02:53:32 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-09-30 02:53:32 +0000
commit4562dd8789617f8976b712cad375a8f715b33d97 (patch)
treeeb8773247e8e2f272c29ff2f5a75f7f783289ec2 /testsuites/psxtests/psx01
parent2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-4562dd8789617f8976b712cad375a8f715b33d97.tar.bz2
2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* psx01/init.c, psx07/init.c, psx09/init.c, psx12/init.c, psxclock/init.c, psxtimer01/psxtimer.c: Include "pritime.h". Use PRIdtime_t to print time_t.
Diffstat (limited to 'testsuites/psxtests/psx01')
-rw-r--r--testsuites/psxtests/psx01/init.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c
index c3ce2cf925..40616c3c9e 100644
--- a/testsuites/psxtests/psx01/init.c
+++ b/testsuites/psxtests/psx01/init.c
@@ -13,11 +13,13 @@
#include "config.h"
#endif
-#define CONFIGURE_INIT
-#include "system.h"
#include <sched.h>
#include <sys/utsname.h>
+#define CONFIGURE_INIT
+#include "system.h"
+#include "pritime.h"
+
void *POSIX_Init(
void *argument
)
@@ -87,7 +89,7 @@ void *POSIX_Init(
status = sched_rr_get_interval( getpid(), &tr );
printf(
- "Init: Round Robin quantum is %ld seconds, %ld nanoseconds\n",
+ "Init: Round Robin quantum is %" PRIdtime_t " seconds, %ld nanoseconds\n",
tr.tv_sec,
tr.tv_nsec
);