From c42e77a1a798aeabbbed6d675e8545aa615eae0c Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 26 Oct 2009 13:58:06 +0000 Subject: Use PRIdrtems_task_priority to print rtems_task_priority's. --- testsuites/sptests/sp12/pritask.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuites/sptests/sp12') 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 ); } -- cgit v1.2.3