summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/cpuuse/cpuusagereport.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-12 09:25:56 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-01-13 08:10:24 +0100
commit7ced9d9bb2fd51cfef2ce33d22e779adfed604c2 (patch)
treee8388a0a3ad4776b6b11777719b391ffe2127064 /cpukit/libmisc/cpuuse/cpuusagereport.c
parentscore: Add Thread_queue_Queue::name (diff)
downloadrtems-7ced9d9bb2fd51cfef2ce33d22e779adfed604c2.tar.bz2
score: Add and use _Thread_Get_name()
Update #2858.
Diffstat (limited to 'cpukit/libmisc/cpuuse/cpuusagereport.c')
-rw-r--r--cpukit/libmisc/cpuuse/cpuusagereport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libmisc/cpuuse/cpuusagereport.c b/cpukit/libmisc/cpuuse/cpuusagereport.c
index 1049296cbd..2a01a8aa3d 100644
--- a/cpukit/libmisc/cpuuse/cpuusagereport.c
+++ b/cpukit/libmisc/cpuuse/cpuusagereport.c
@@ -40,7 +40,7 @@ typedef struct {
static bool cpu_usage_visitor( Thread_Control *the_thread, void *arg )
{
cpu_usage_context *ctx;
- char name[ 13 ];
+ char name[ 38 ];
uint32_t ival;
uint32_t fval;
Timestamp_Control uptime;
@@ -49,7 +49,7 @@ static bool cpu_usage_visitor( Thread_Control *the_thread, void *arg )
uint32_t nanoseconds;
ctx = arg;
- rtems_object_get_name( the_thread->Object.id, sizeof( name ), name );
+ _Thread_Get_name( the_thread, name, sizeof( name ) );
_Thread_Get_CPU_time_used( the_thread, &used );
_TOD_Get_uptime( &uptime );