From e295d463d052552c7dea698d9b7a112b9db4eb99 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 27 Oct 2009 04:12:06 +0000 Subject: Duplicate code from rtems_name_to_characters to convert rtems_name's into char arrays. --- testsuites/sptests/sp07/tstart.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'testsuites/sptests/sp07/tstart.c') diff --git a/testsuites/sptests/sp07/tstart.c b/testsuites/sptests/sp07/tstart.c index ef9c186534..d0055f6a9a 100644 --- a/testsuites/sptests/sp07/tstart.c +++ b/testsuites/sptests/sp07/tstart.c @@ -30,11 +30,17 @@ void Task_start_extension( if ( task_number( started_task->Object.id ) > 0 ) { name = Task_name[ task_number( started_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_START - %c%c%c%c - started\n", - (name >> 24) & 0xff, - (name >> 16) & 0xff, - (name >> 8) & 0xff, - name & 0xff + (char)((name >> 24) & 0xff), + (char)((name >> 16) & 0xff), + (char)((name >> 8) & 0xff), + (char)(name & 0xff) ); buffered_io_add_string( line ); } -- cgit v1.2.3