#3318 closed enhancement (fixed)

Improve INTERNAL_ERROR_THREAD_EXITTED to show the id and thread name

Reported by: Matthew J Fletcher 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 03/07/18 at 06:50:44 by Sebastian Huber

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

comment:2 Changed on 03/08/18 at 05:56:53 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.