summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/ticker
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-11-07 09:09:26 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-11-07 09:09:26 +0000
commitd66557fac49db9329068c1afd9685875cacd3137 (patch)
tree4ce9ab681e00c57e55bae0521cbcc66397dedeb9 /testsuites/samples/ticker
parent2005-11-07 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-d66557fac49db9329068c1afd9685875cacd3137.tar.bz2
Switch back to include compile.am instead of amcompile.am
Diffstat (limited to 'testsuites/samples/ticker')
-rw-r--r--testsuites/samples/ticker/Makefile.am2
-rw-r--r--testsuites/samples/ticker/system.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/samples/ticker/Makefile.am b/testsuites/samples/ticker/Makefile.am
index 177e9cc6ec..e4a8a17136 100644
--- a/testsuites/samples/ticker/Makefile.am
+++ b/testsuites/samples/ticker/Makefile.am
@@ -19,7 +19,7 @@ OBJS = $(lib_a_OBJECTS)
PRINT_SRCS = $(DOCS)
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
-include $(top_srcdir)/../automake/amcompile.am
+include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
include $(top_srcdir)/sample.am
diff --git a/testsuites/samples/ticker/system.h b/testsuites/samples/ticker/system.h
index f17d52f279..b08e22b11a 100644
--- a/testsuites/samples/ticker/system.h
+++ b/testsuites/samples/ticker/system.h
@@ -14,6 +14,7 @@
*/
#include <rtems.h>
+#include <inttypes.h>
/* functions */
@@ -60,7 +61,7 @@ extern rtems_name Task_name[ 4 ]; /* array of task names */
#define print_time(_s1, _tb, _s2) \
do { \
- printf( "%s%02d:%02d:%02d %02d/%02d/%04d%s", \
+ printf( "%s%02" PRId32 ":%02" PRId32 ":%02" PRId32 " %02" PRId32 "/%02" PRId32 "/%04" PRId32 "%s", \
_s1, (_tb)->hour, (_tb)->minute, (_tb)->second, \
(_tb)->month, (_tb)->day, (_tb)->year, _s2 ); \
fflush(stdout); \