#3318 closed enhancement (fixed)

Improve INTERNAL_ERROR_THREAD_EXITTED to show the id and thread name

Reported by: mfletcher Owned by: Sebastian Huber
Priority: low Milestone: 5.1
Component: bsps Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

It might be more helpful i the case of a thread exit to output some information about that thread to make tracking it down simpler.

This example works ok.

static void thread_exitted_print_info(rtems_tcb *tcb)
{

printf("Thread exited: %s (id %d)\n", tcb->Object.name, tcb->Object.id)

}

/* In your configuration: */
#define CONFIGURE_INITIAL_EXTENSIONS \

{ .thread_exitted = thread_exitted_print_info }

Change History (2)

comment:1 Changed on Mar 7, 2018 at 6:50:44 AM by Sebastian Huber

Component: rtemsbsps
Milestone: 5.1
Owner: set to Sebastian Huber
Status: newaccepted
Version: 5

comment:2 Changed on Mar 8, 2018 at 5:56:53 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: acceptedclosed

In d39cc068/rtems:

bsps: More verbose bsp_fatal_extension()

Close #3318.

Note: See TracTickets for help on using tickets.