mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 20:54:18 +08:00
record: Fix thread names on 64-bit targets
Also fixes the thread names on signed char targets. Update #3665.
This commit is contained in:
@@ -211,7 +211,10 @@ static bool thread_names_visitor( rtems_tcb *tcb, void *arg )
|
||||
data = 0;
|
||||
|
||||
for ( j = 0; i < n && j < sizeof( data ); ++j ) {
|
||||
data |= name[ i ] << ( j * 8 );
|
||||
rtems_record_data c;
|
||||
|
||||
c = (unsigned char) name[ i ];
|
||||
data |= c << ( j * 8 );
|
||||
++i;
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,10 @@ bool _Record_Thread_create(
|
||||
data = 0;
|
||||
|
||||
for ( k = 0; j < n && k < sizeof( data ); ++k ) {
|
||||
data |= name[ i ] << ( k * 8 );
|
||||
rtems_record_data c;
|
||||
|
||||
c = (unsigned char) name[ i ];
|
||||
data |= c << ( k * 8 );
|
||||
++j;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user