diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-02 21:01:58 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-10-02 21:01:58 +0000 |
commit | 1d7a927dc43b0d7af43799fd45551d74cb0e5bd7 (patch) | |
tree | 853a37d415357d3813eb236ac8459e45aa531b8f /testsuites/tmtests/tmck/task1.c | |
parent | 2008-10-02 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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/tmck/task1.c')
-rw-r--r-- | testsuites/tmtests/tmck/task1.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/tmtests/tmck/task1.c b/testsuites/tmtests/tmck/task1.c index 9e46732f4f..8324289388 100644 --- a/testsuites/tmtests/tmck/task1.c +++ b/testsuites/tmtests/tmck/task1.c @@ -14,12 +14,12 @@ #define CONFIGURE_INIT #include "system.h" -#define MAXIMUM_DISTRIBUTION 10000 +#define MAXIMUM_DISTRIBUTION 1000 #undef OPERATION_COUNT #define OPERATION_COUNT 100000 -int Distribution[ MAXIMUM_DISTRIBUTION + 1 ]; +uint32_t Distribution[ MAXIMUM_DISTRIBUTION + 1 ]; rtems_task Task_1( rtems_task_argument argument @@ -172,8 +172,8 @@ void check_read_timer() for ( index = 0 ; index <= MAXIMUM_DISTRIBUTION ; index++ ) { time += (Distribution[ index ] * index); if ( Distribution[ index ] != 0 ) - printf( "%d %d\n", index, Distribution[ index ] ); + printf( "%" PRId32 " %" PRId32 "\n", index, Distribution[ index ] ); } - printf( "Total time = %d\n", time ); - printf( "Average time = %d\n", time / OPERATION_COUNT ); + printf( "Total time = %" PRId32 "\n", time ); + printf( "Average time = %" PRId32 "\n", time / OPERATION_COUNT ); } |