diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-20 10:47:59 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-24 08:16:33 -0500 |
commit | 7075711493e260b0ad7270abb66920cbe1918dfc (patch) | |
tree | 8409fcea9569492e8f2dce07b46f86d31d4aea21 /testsuites | |
parent | sptests/sp33/init.c: Correct printf() warning (diff) | |
download | rtems-7075711493e260b0ad7270abb66920cbe1918dfc.tar.bz2 |
sptests/sp34/changepri.c: Correct printf() warning
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/sp34/changepri.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuites/sptests/sp34/changepri.c b/testsuites/sptests/sp34/changepri.c index fea1fbea55..f32f6ec3c6 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 ); |