Duplicate code from rtems_name_to_characters to convert rtems_name's into char arrays.

This commit is contained in:
Ralf Corsepius
2009-10-27 04:12:06 +00:00
parent a20539f173
commit e295d463d0
4 changed files with 44 additions and 20 deletions

View File

@@ -30,11 +30,17 @@ bool Task_create_extension(
if ( task_number( created_task->Object.id ) > 0 ) {
name = Task_name[ task_number( created_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_CREATE - %c%c%c%c - created\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 );
}