[rtems commit] sptests/sp34/changepri.c: Correct printf() warning
Joel Sherril
joel at rtems.org
Tue Mar 24 13:18:11 UTC 2015
Module: rtems
Branch: master
Commit: 7075711493e260b0ad7270abb66920cbe1918dfc
Changeset: http://git.rtems.org/rtems/commit/?id=7075711493e260b0ad7270abb66920cbe1918dfc
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Fri Mar 20 10:47:59 2015 -0500
sptests/sp34/changepri.c: Correct printf() warning
---
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
);
More information about the vc
mailing list