summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/unlimited/test3.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-24 05:52:48 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-24 05:52:48 +0000
commit9b86291bca3c2d7b7b7e1a839ce57cb4ff823374 (patch)
tree6f5a7c699e301a6906b80456a9f51bfad5676f6e /testsuites/samples/unlimited/test3.c
parentAdd missing prototypes. (diff)
downloadrtems-9b86291bca3c2d7b7b7e1a839ce57cb4ff823374.tar.bz2
Various warning fixes.
Diffstat (limited to '')
-rw-r--r--testsuites/samples/unlimited/test3.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuites/samples/unlimited/test3.c b/testsuites/samples/unlimited/test3.c
index ad2ca95e72..fedc23d0d0 100644
--- a/testsuites/samples/unlimited/test3.c
+++ b/testsuites/samples/unlimited/test3.c
@@ -20,9 +20,10 @@
* $Id$
*/
-#include "system.h"
+#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
+#include "system.h"
void test3()
{
@@ -71,7 +72,7 @@ void test3()
if (status_code_bad(result))
break;
- printf("number = %3i, id = %08x, starting, ", task_count, task_id[task_count]);
+ printf("number = %3" PRIi32 ", id = %08x, starting, ", task_count, task_id[task_count]);
fflush(stdout);
result = rtems_task_start(task_id[task_count],
@@ -98,7 +99,7 @@ void test3()
if (task_count < (TASK_ALLOCATION_SIZE * 11))
{
printf( " FAIL3 : not enough tasks created -\n"
- " task created = %i, required number = %i\n",
+ " task created = %" PRIi32 ", required number = %i\n",
task_count, (TASK_ALLOCATION_SIZE * 11));
exit( 1 );
}
@@ -112,7 +113,7 @@ void test3()
if (!task_id[remove_task])
{
printf( " FAIL3 : remove task has a 0 id -\n"
- " task number = %i\n",
+ " task number = %" PRIi32 "\n",
remove_task);
exit( 1 );
}