From 7ced9d9bb2fd51cfef2ce33d22e779adfed604c2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 Jan 2017 09:25:56 +0100 Subject: score: Add and use _Thread_Get_name() Update #2858. --- cpukit/libmisc/cpuuse/cpuusagereport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libmisc/cpuuse/cpuusagereport.c') 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 ); -- cgit v1.2.3