summaryrefslogtreecommitdiffstats
path: root/testsuites/smptests/smp01/tasks.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/smptests/smp01/tasks.c')
-rw-r--r--testsuites/smptests/smp01/tasks.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/testsuites/smptests/smp01/tasks.c b/testsuites/smptests/smp01/tasks.c
index 1b3b5fb5ef..4eb81f1c98 100644
--- a/testsuites/smptests/smp01/tasks.c
+++ b/testsuites/smptests/smp01/tasks.c
@@ -13,11 +13,13 @@
#include "system.h"
+#include <inttypes.h>
+
rtems_task Test_task(
rtems_task_argument task_index
)
{
- int cpu_num;
+ uint32_t cpu_num;
char name[5];
char *p;
@@ -26,11 +28,11 @@ rtems_task Test_task(
rtems_test_assert( p != NULL );
/* Get the CPU Number */
- cpu_num = bsp_smp_processor_id();
+ cpu_num = rtems_smp_get_current_processor();
/* Print that the task is up and running. */
Loop();
- locked_printf(" CPU %d running Task %s\n", cpu_num, name);
+ locked_printf(" CPU %" PRIu32 " running Task %s\n", cpu_num, name);
/* Set the flag that the task is up and running */
TaskRan[cpu_num] = true;