[PATCH 24/42] sptests/sp34/changepri.c: Correct printf() warning
Joel Sherrill
joel.sherrill at oarcorp.com
Mon Mar 23 14:39:22 UTC 2015
---
testsuites/sptests/sp34/changepri.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/testsuites/sptests/sp34/changepri.c b/testsuites/sptests/sp34/changepri.c
index fea1fbe..f32f6ec 100644
--- a/testsuites/sptests/sp34/changepri.c
+++ b/testsuites/sptests/sp34/changepri.c
@@ -75,6 +75,7 @@ rtems_id Semaphore;
rtems_task BlockingTasks(rtems_task_argument arg)
{
rtems_status_code status;
+ rtems_task_priority pri = (rtems_task_priority) arg;
rtems_task_priority opri;
rtems_task_priority npri;
@@ -82,9 +83,9 @@ rtems_task BlockingTasks(rtems_task_argument arg)
directive_failed( status, "rtems_task_set_priority" );
printf(
- "semaphore_obtain -- BlockingTask %" PRIdrtems_task_argument
+ "semaphore_obtain -- BlockingTask %" PRIdrtems_task_priority
" @ pri=%" PRIdrtems_task_priority ") blocks\n",
- arg,
+ pri,
opri
);
status = rtems_semaphore_obtain(Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
@@ -95,9 +96,9 @@ rtems_task BlockingTasks(rtems_task_argument arg)
directive_failed( status, "rtems_task_set_priority" );
printf(
- "semaphore_obtain -- BlockingTask %" PRIdrtems_task_argument
+ "semaphore_obtain -- BlockingTask %" PRIdrtems_task_priority
" @ pri=%" PRIdrtems_task_priority ") returns\n",
- arg,
+ pri,
npri
);
--
1.9.3
More information about the devel
mailing list