diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 13:58:06 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-10-26 13:58:06 +0000 |
commit | c42e77a1a798aeabbbed6d675e8545aa615eae0c (patch) | |
tree | 4eea7f3c3b5c2a011156622fadd50fcd87f4fa6f /testsuites/sptests/sp12 | |
parent | 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-c42e77a1a798aeabbbed6d675e8545aa615eae0c.tar.bz2 |
Use PRIdrtems_task_priority to print rtems_task_priority's.
Diffstat (limited to 'testsuites/sptests/sp12')
-rw-r--r-- | testsuites/sptests/sp12/pritask.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/sptests/sp12/pritask.c b/testsuites/sptests/sp12/pritask.c index a4786b7e29..6aec7d4b29 100644 --- a/testsuites/sptests/sp12/pritask.c +++ b/testsuites/sptests/sp12/pritask.c @@ -47,7 +47,7 @@ rtems_task Priority_task( directive_failed( status, "rtems_semaphore_obtain of SM2" ); if ( its_priority < PRIORITY_INHERIT_BASE_PRIORITY ) { - printf( "PRI%d - WHY AM I HERE? (pri=%d)", its_index, its_priority ); + printf( "PRI%d - WHY AM I HERE? (pri=%" PRIdrtems_task_priority ")", its_index, its_priority ); rtems_test_exit( 0 ); } @@ -63,7 +63,7 @@ rtems_task Priority_task( status = rtems_task_set_priority( RTEMS_SELF, priority, &old_priority ); directive_failed( status, "rtems_task_set_priority with resource" ); if ( priority != old_priority ) { - printf( "priority != old_priority (%d != %d)\n", priority, old_priority ); + printf( "priority != old_priority (%" PRIdrtems_task_priority " != %" PRIdrtems_task_priority ")\n", priority, old_priority ); rtems_test_exit(0); } } @@ -101,7 +101,7 @@ rtems_task Priority_task( ¤t_priority ); directive_failed( status, "PRI5 rtems_task_set_priority CURRENT" ); - printf( "PRI5 - priority of PRI5 is %d\n", current_priority ); + printf( "PRI5 - priority of PRI5 is %" PRIdrtems_task_priority "\n", current_priority ); (void) rtems_task_suspend( RTEMS_SELF ); } |