summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-20 10:46:18 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-24 08:16:31 -0500
commit52a34a74192adb1f368fc0ffcc96dada78cf23f4 (patch)
treeb285adca31e8b9b03aa36db72b7fababe7eb6f42
parentab90136b4399206907b223901de8eab08955675e (diff)
downloadrtems-52a34a74192adb1f368fc0ffcc96dada78cf23f4.tar.bz2
sptests/sp12/pritask.c: Correct printf() warning
-rw-r--r--testsuites/sptests/sp12/pritask.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuites/sptests/sp12/pritask.c b/testsuites/sptests/sp12/pritask.c
index 736aa82c5f..2de764a524 100644
--- a/testsuites/sptests/sp12/pritask.c
+++ b/testsuites/sptests/sp12/pritask.c
@@ -14,15 +14,17 @@
#include "system.h"
rtems_task Priority_task(
- rtems_task_argument its_index
+ rtems_task_argument its_index_arg
)
{
rtems_interval timeout;
rtems_task_priority its_priority;
rtems_task_priority current_priority;
rtems_status_code status;
+ int its_index;
uint32_t index;
+ its_index = (int) its_index_arg;
its_priority = Task_priority[ its_index ];
if ( its_priority < 3 )
@@ -42,8 +44,7 @@ rtems_task Priority_task(
if ( its_priority < PRIORITY_INHERIT_BASE_PRIORITY ) {
printf(
- "PRI%" PRIdrtems_task_argument " - WHY AM I HERE? (pri=%"
- PRIdrtems_task_priority ")",
+ "PRI%d - WHY AM I HERE? (pri=%" PRIdrtems_task_priority ")",
its_index,
its_priority
);