forked from Imagelibrary/rtems
Duplicate code from rtems_name_to_characters to convert rtems_name's into char arrays.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user