summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/unlimited/test1.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/test1.c
parentAdd missing prototypes. (diff)
downloadrtems-9b86291bca3c2d7b7b7e1a839ce57cb4ff823374.tar.bz2
Various warning fixes.
Diffstat (limited to 'testsuites/samples/unlimited/test1.c')
-rw-r--r--testsuites/samples/unlimited/test1.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/testsuites/samples/unlimited/test1.c b/testsuites/samples/unlimited/test1.c
index b8eb4e304a..18cccfa24d 100644
--- a/testsuites/samples/unlimited/test1.c
+++ b/testsuites/samples/unlimited/test1.c
@@ -17,11 +17,13 @@
* $Id$
*/
-#include "system.h"
-#include <rtems/score/object.h>
+#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
+#include "system.h"
+#include <rtems/score/object.h>
+
void test1()
{
bool auto_extend;
@@ -64,7 +66,7 @@ void test1()
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],
@@ -88,7 +90,7 @@ void test1()
if (task_count != (TASK_ALLOCATION_SIZE - 1)) {
printf( " FAIL1 : the number of tasks does not equal the expected size -\n"
- " task created = %i, required number = %i\n",
+ " task created = %" PRIi32 ", required number = %i\n",
task_count, TASK_ALLOCATION_SIZE);
exit( 1 );
}