summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp07/tstart.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 04:12:06 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-10-27 04:12:06 +0000
commite295d463d052552c7dea698d9b7a112b9db4eb99 (patch)
treef5c4d55e281c81b0024b5c643c8263ffa67ad789 /testsuites/sptests/sp07/tstart.c
parent2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-e295d463d052552c7dea698d9b7a112b9db4eb99.tar.bz2
Duplicate code from rtems_name_to_characters to convert rtems_name's into char arrays.
Diffstat (limited to 'testsuites/sptests/sp07/tstart.c')
-rw-r--r--testsuites/sptests/sp07/tstart.c14
1 files changed, 10 insertions, 4 deletions
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 );
}