forked from Imagelibrary/rtems
2011-07-24 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp04/tswitch.c, sp07/task1.c, sp07/task2.c, sp09/screen07.c, sp11/task1.c, sp11/task2.c, sp12/pridrv.c, sp12/pritask.c, sp13/task1.c, sp14/asr.c, sp14/task1.c, sp19/first.c, sp19/fptask.c, sp19/inttest.h, sp19/task1.c, sp20/task1.c, sp25/task1.c, sp26/task1.c, sp28/init.c, sp29/init.c, sp31/task1.c, sp32/init.c, sp33/init.c, sp34/changepri.c, sp36/strict_order_mut.c, sp37/init.c, sp43/init.c, sp44/init.c, sp48/init.c, sp54/init.c, sp59/init.c, sp65/init.c, sp68/init.c, spchain/init.c, spclockget/init.c, spfatal03/testcase.h, spfatal07/testcase.h, spfatal_support/init.c: Do not line length exceed 80 columns.
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
/* Priority_task
|
||||
*
|
||||
* This routine serves as a test task. It verifies the semaphore manager.
|
||||
*
|
||||
* Input parameters:
|
||||
* its_index - priority index
|
||||
*
|
||||
* Output parameters: NONE
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2011.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -31,7 +23,7 @@ rtems_task Priority_task(
|
||||
rtems_task_priority its_priority;
|
||||
rtems_task_priority current_priority;
|
||||
rtems_status_code status;
|
||||
uint32_t index;
|
||||
uint32_t index;
|
||||
|
||||
its_priority = Task_priority[ its_index ];
|
||||
|
||||
@@ -51,7 +43,12 @@ rtems_task Priority_task(
|
||||
directive_failed( status, "rtems_semaphore_obtain of SM2" );
|
||||
|
||||
if ( its_priority < PRIORITY_INHERIT_BASE_PRIORITY ) {
|
||||
printf( "PRI%" PRIdrtems_task_argument " - WHY AM I HERE? (pri=%" PRIdrtems_task_priority ")", its_index, its_priority );
|
||||
printf(
|
||||
"PRI%" PRIdrtems_task_argument " - WHY AM I HERE? (pri=%"
|
||||
PRIdrtems_task_priority ")",
|
||||
its_index,
|
||||
its_priority
|
||||
);
|
||||
rtems_test_exit( 0 );
|
||||
}
|
||||
|
||||
@@ -67,7 +64,12 @@ 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 (%" PRIdrtems_task_priority " != %" PRIdrtems_task_priority ")\n", priority, old_priority );
|
||||
printf(
|
||||
"priority != old_priority (%" PRIdrtems_task_priority
|
||||
" != %" PRIdrtems_task_priority ")\n",
|
||||
priority,
|
||||
old_priority
|
||||
);
|
||||
rtems_test_exit(0);
|
||||
}
|
||||
}
|
||||
@@ -105,7 +107,10 @@ rtems_task Priority_task(
|
||||
¤t_priority
|
||||
);
|
||||
directive_failed( status, "PRI5 rtems_task_set_priority CURRENT" );
|
||||
printf( "PRI5 - priority of PRI5 is %" PRIdrtems_task_priority "\n", current_priority );
|
||||
printf(
|
||||
"PRI5 - priority of PRI5 is %" PRIdrtems_task_priority "\n",
|
||||
current_priority
|
||||
);
|
||||
|
||||
(void) rtems_task_suspend( RTEMS_SELF );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user