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:
@@ -80,7 +80,12 @@ 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 %" PRIdrtems_task_argument " @ pri=%" PRIdrtems_task_priority ") blocks\n", arg, opri);
|
||||
printf(
|
||||
"semaphore_obtain -- BlockingTask %" PRIdrtems_task_argument
|
||||
" @ pri=%" PRIdrtems_task_priority ") blocks\n",
|
||||
arg,
|
||||
opri
|
||||
);
|
||||
status = rtems_semaphore_obtain(Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
|
||||
directive_failed( status, "rtems_semaphore_obtain" );
|
||||
|
||||
@@ -88,7 +93,12 @@ 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 %" PRIdrtems_task_argument " @ pri=%" PRIdrtems_task_priority ") returns\n", arg, npri);
|
||||
printf(
|
||||
"semaphore_obtain -- BlockingTask %" PRIdrtems_task_argument
|
||||
" @ pri=%" PRIdrtems_task_priority ") returns\n",
|
||||
arg,
|
||||
npri
|
||||
);
|
||||
|
||||
(void) rtems_task_delete( RTEMS_SELF );
|
||||
}
|
||||
@@ -108,8 +118,8 @@ rtems_task Init(rtems_task_argument ignored)
|
||||
status = rtems_semaphore_create(
|
||||
rtems_build_name ('S', 'E', 'M', '1'), /* name */
|
||||
0, /* initial count = 0 */
|
||||
RTEMS_LOCAL |
|
||||
RTEMS_COUNTING_SEMAPHORE |
|
||||
RTEMS_LOCAL |
|
||||
RTEMS_COUNTING_SEMAPHORE |
|
||||
RTEMS_PRIORITY,
|
||||
0,
|
||||
&Semaphore); /* *id */
|
||||
@@ -161,7 +171,7 @@ rtems_task Init(rtems_task_argument ignored)
|
||||
|
||||
/* exit the test */
|
||||
puts( "*** END OF TEST 34 ***" );
|
||||
exit(0);
|
||||
rtems_test_exit(0);
|
||||
}
|
||||
|
||||
/* configuration information */
|
||||
|
||||
Reference in New Issue
Block a user