source: rtems/testsuites/sptests/sp07/tstart.c @ 874297f3

4.104.114.84.95
Last change on this file since 874297f3 was 1b4f2b30, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/16/04 at 09:24:30

Remove stray white spaces.

  • Property mode set to 100644
File size: 974 bytes
Line 
1/*  Task_start_extension
2 *
3 *  This routine is the tstart user extension.
4 *
5 *  Input parameters:
6 *    unused        - pointer to currently running TCB
7 *    started_task  - pointer to new TCB being started
8 *
9 *  Output parameters:  NONE
10 *
11 *  COPYRIGHT (c) 1989-1999.
12 *  On-Line Applications Research Corporation (OAR).
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.com/license/LICENSE.
17 *
18 *  $Id$
19 */
20
21#include "system.h"
22
23rtems_extension Task_start_extension(
24  rtems_tcb *unused,
25  rtems_tcb *started_task
26)
27{
28  char line[80];
29  rtems_name name;
30
31  if ( task_number( started_task->Object.id ) > 0 ) {
32    name = Task_name[ task_number( started_task->Object.id ) ];
33    sprintf( line, "TASK_START - %c%c%c%c - started\n",
34      (name >> 24) & 0xff,
35      (name >> 16) & 0xff,
36      (name >> 8) & 0xff,
37      name & 0xff
38    );
39    buffered_io_add_string( line );
40  }
41}
Note: See TracBrowser for help on using the repository browser.