diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-01-07 09:55:45 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-01-11 08:47:01 +0100 |
commit | ccd54344d904b657123e4e4ba795a32212382be2 (patch) | |
tree | d490d77b6173f586137036ed07ec5bd27d8ca65a /cpukit/libmisc/cpuuse/cpuusagetop.c | |
parent | 3d1becf925510307d05a9b59627dc941d9403fcf (diff) |
score: Introduce Thread_Entry_information
This avoids potential dead code in _Thread_Handler(). It gets rid of
the dangerous function pointer casts.
Update #2514.
Diffstat (limited to 'cpukit/libmisc/cpuuse/cpuusagetop.c')
-rw-r--r-- | cpukit/libmisc/cpuuse/cpuusagetop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libmisc/cpuuse/cpuusagetop.c b/cpukit/libmisc/cpuuse/cpuusagetop.c index eaa192aa74..811a8bfa07 100644 --- a/cpukit/libmisc/cpuuse/cpuusagetop.c +++ b/cpukit/libmisc/cpuuse/cpuusagetop.c @@ -484,7 +484,7 @@ rtems_cpuusage_top_thread (rtems_task_argument arg) */ rtems_object_get_name(thread->Object.id, sizeof(name), name); if (name[0] == '\0') - snprintf(name, sizeof(name) - 1, "(%p)", thread->Start.entry_point); + snprintf(name, sizeof(name) - 1, "(%p)", thread->Start.Entry.Kinds.Numeric.entry); (*data->plugin.print)(data->plugin.context, " 0x%08" PRIx32 " | %-19s | %3" PRId32 " | %3" PRId32 " | ", |