diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-12-16 23:35:09 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-12-16 23:35:09 +0000 |
commit | e4571904d7e7271b2d461438181494f95992d816 (patch) | |
tree | 1e872b8ca626e6c6369c098d6b9578cc900c9bcc /testsuites/sptests/sp07/tstart.c | |
parent | 2003-12-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-e4571904d7e7271b2d461438181494f95992d816.tar.bz2 |
2003-12-16 Joel Sherrill <joel@OARcorp.com>
PR 544/tests
* sp07/Makefile.am, sp07/init.c, sp07/system.h, sp07/task4.c,
sp07/tcreate.c, sp07/tdelete.c, sp07/trestart.c, sp07/tstart.c,
sp09/system.h, sp19/system.h, sp20/system.h: Various modifications to
make tests account for resources and not print at inappropriate
times.
* sp07/buffered_io.c: New file.
Diffstat (limited to 'testsuites/sptests/sp07/tstart.c')
-rw-r--r-- | testsuites/sptests/sp07/tstart.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/testsuites/sptests/sp07/tstart.c b/testsuites/sptests/sp07/tstart.c index f3f75be3ee..3053113a3c 100644 --- a/testsuites/sptests/sp07/tstart.c +++ b/testsuites/sptests/sp07/tstart.c @@ -25,9 +25,17 @@ rtems_extension Task_start_extension( rtems_tcb *started_task ) { + char line[80]; + rtems_name name; + if ( task_number( started_task->Object.id ) > 0 ) { - puts_nocr( "TASK_START - " ); - put_name( Task_name[ task_number( started_task->Object.id ) ], FALSE ); - puts( " - started." ); + name = Task_name[ task_number( started_task->Object.id ) ]; + sprintf( line, "TASK_START - %c%c%c%c - started\n", + (name >> 24) & 0xff, + (name >> 16) & 0xff, + (name >> 8) & 0xff, + name & 0xff + ); + buffered_io_add_string( line ); } } |