summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-26 14:07:51 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-26 14:07:51 +0000
commitdfd856aa43db5817f2336c21308644348a69c9ad (patch)
tree280241693f7508560760a0333d7a0f3ed2b1d442 /testsuites/sptests
parent2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-dfd856aa43db5817f2336c21308644348a69c9ad.tar.bz2
Use PRIdrtems_task_priority to print rtems_task_priority's.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/sp34/changepri.c4
-rw-r--r--testsuites/sptests/sp59/init.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/sptests/sp34/changepri.c b/testsuites/sptests/sp34/changepri.c
index 5e10ebc84b..02c0fcec78 100644
--- a/testsuites/sptests/sp34/changepri.c
+++ b/testsuites/sptests/sp34/changepri.c
@@ -76,7 +76,7 @@ rtems_task BlockingTasks(rtems_task_argument arg)
status = rtems_task_set_priority(RTEMS_SELF, RTEMS_CURRENT_PRIORITY, &opri);
directive_failed( status, "rtems_task_set_priority" );
- printf("semaphore_obtain -- BlockingTask %d @ pri=%d) blocks\n", arg, opri);
+ printf("semaphore_obtain -- BlockingTask %d @ pri=%" PRIdrtems_task_priority ") blocks\n", arg, opri);
status = rtems_semaphore_obtain(Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
directive_failed( status, "rtems_semaphore_obtain" );
@@ -84,7 +84,7 @@ rtems_task BlockingTasks(rtems_task_argument arg)
status = rtems_task_set_priority(RTEMS_SELF, RTEMS_CURRENT_PRIORITY, &npri);
directive_failed( status, "rtems_task_set_priority" );
- printf("semaphore_obtain -- BlockingTask %d @ pri=%d) returns\n", arg, npri);
+ printf("semaphore_obtain -- BlockingTask %d @ pri=%" PRIdrtems_task_priority ") returns\n", arg, npri);
(void) rtems_task_delete( RTEMS_SELF );
}
diff --git a/testsuites/sptests/sp59/init.c b/testsuites/sptests/sp59/init.c
index 23476e0c7f..ac52f9482c 100644
--- a/testsuites/sptests/sp59/init.c
+++ b/testsuites/sptests/sp59/init.c
@@ -51,7 +51,7 @@ rtems_task Init(
priority = RTEMS_MAXIMUM_PRIORITY / 4;
priority = (priority * 3) + (priority / 2);
- printf( "Init - blocking task priority will be %d\n", priority );
+ printf( "Init - blocking task priority will be %" PRIdrtems_task_priority "\n", priority );
puts( "Init - rtems_task_create - delay task - OK" );
status = rtems_task_create(