summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-02 21:01:58 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-10-02 21:01:58 +0000
commit1d7a927dc43b0d7af43799fd45551d74cb0e5bd7 (patch)
tree853a37d415357d3813eb236ac8459e45aa531b8f /testsuites/tmtests/include
parent2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-1d7a927dc43b0d7af43799fd45551d74cb0e5bd7.tar.bz2
2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/timesys.h: Use inttypes.h. * tmck/task1.c: Use uint32_t for count.
Diffstat (limited to 'testsuites/tmtests/include')
-rw-r--r--testsuites/tmtests/include/timesys.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuites/tmtests/include/timesys.h b/testsuites/tmtests/include/timesys.h
index 38d15ff518..fc29cccccd 100644
--- a/testsuites/tmtests/include/timesys.h
+++ b/testsuites/tmtests/include/timesys.h
@@ -14,6 +14,7 @@
*/
#include <tmacros.h>
+#include <inttypes.h>
/*
* This constant determines the maximum number of a resource
@@ -36,7 +37,7 @@
#define put_time( _message, _total_time, \
_iterations, _loop_overhead, _overhead ) \
printf( \
- "%s %d\n", \
+ "%s %" PRId32 "\n", \
(_message), \
(((_total_time) - (_loop_overhead)) / (_iterations)) - (_overhead) \
)