diff options
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/sp07/tcreate.c | 14 | ||||
-rw-r--r-- | testsuites/sptests/sp07/tdelete.c | 22 | ||||
-rw-r--r-- | testsuites/sptests/sp07/trestart.c | 14 | ||||
-rw-r--r-- | testsuites/sptests/sp07/tstart.c | 14 |
4 files changed, 44 insertions, 20 deletions
diff --git a/testsuites/sptests/sp07/tcreate.c b/testsuites/sptests/sp07/tcreate.c index 4551eec5ae..2be9616711 100644 --- a/testsuites/sptests/sp07/tcreate.c +++ b/testsuites/sptests/sp07/tcreate.c @@ -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 ); } diff --git a/testsuites/sptests/sp07/tdelete.c b/testsuites/sptests/sp07/tdelete.c index b1180a162e..7df727d362 100644 --- a/testsuites/sptests/sp07/tdelete.c +++ b/testsuites/sptests/sp07/tdelete.c @@ -31,20 +31,26 @@ void Task_delete_extension( if ( task_number( running_task->Object.id ) > 0 ) { name = Task_name[ task_number( running_task->Object.id ) ]; sprintf( line, "TASK_DELETE - %c%c%c%c TASK_DELETE ", - (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 ); } if ( task_number( deleted_task->Object.id ) > 0 ) { name = Task_name[ task_number( deleted_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, "deleting - %c%c%c%c\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 ); } diff --git a/testsuites/sptests/sp07/trestart.c b/testsuites/sptests/sp07/trestart.c index 1ec205d4d0..6ba9c2000e 100644 --- a/testsuites/sptests/sp07/trestart.c +++ b/testsuites/sptests/sp07/trestart.c @@ -30,11 +30,17 @@ void Task_restart_extension( if ( task_number( restarted_task->Object.id ) > 0 ) { name = Task_name[ task_number( restarted_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_RESTART - %c%c%c%c - restarted\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 ); } 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 ); } |