diff options
Diffstat (limited to 'testsuites/sptests/sp07/trestart.c')
-rw-r--r-- | testsuites/sptests/sp07/trestart.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/testsuites/sptests/sp07/trestart.c b/testsuites/sptests/sp07/trestart.c index 7a3fecf385..d821562f2b 100644 --- a/testsuites/sptests/sp07/trestart.c +++ b/testsuites/sptests/sp07/trestart.c @@ -27,23 +27,9 @@ void Task_restart_extension( rtems_tcb *restarted_task ) { - char line[80]; - rtems_name name; + ssize_t task = task_number( restarted_task->Object.id ); - if ( task_number( restarted_task->Object.id ) > 0 ) { - name = Task_name[ task_number( restarted_task->Object.id ) ]; -/* - * FIXME: There should be a public function to - * convert numeric rtems_names into char arrays - * c.f. rtems_name_to_characters() in rtems/rtems/support.inl - * but it's private. - */ - sprintf( line, "TASK_RESTART - %c%c%c%c - restarted\n", - (char)((name >> 24) & 0xff), - (char)((name >> 16) & 0xff), - (char)((name >> 8) & 0xff), - (char)(name & 0xff) - ); - buffered_io_add_string( line ); + if (task > 0) { + ++Task_restarted[ task ]; } } |