Changeset d39cc068 in rtems


Ignore:
Timestamp:
Mar 7, 2018, 5:37:55 AM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
0231ebc
Parents:
ef900ab
git-author:
Sebastian Huber <sebastian.huber@…> (03/07/18 05:37:55)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/07/18 12:03:36)
Message:

bsps: More verbose bsp_fatal_extension()

Close #3318.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/shared/bspclean.c

    ref900ab rd39cc068  
    1212#include <rtems/bspIo.h>
    1313#include <rtems/version.h>
     14#include <rtems/score/threadimpl.h>
     15#include <inttypes.h>
    1416
    1517void bsp_fatal_extension(
     
    2022{
    2123  #if BSP_VERBOSE_FATAL_EXTENSION
     24    Thread_Control *executing;
     25
    2226    printk(
    2327      "\n"
     
    5660      __VERSION__
    5761    );
     62
     63    executing = _Thread_Get_executing();
     64
     65    if ( executing != NULL ) {
     66      char name[ 32 ];
     67
     68      _Thread_Get_name( executing, name, sizeof( name ) );
     69      printk(
     70        "executing thread ID: 0x08%" PRIx32 "\n"
     71        "executing thread name: %s\n",
     72        executing->Object.id,
     73        name
     74      );
     75    } else {
     76      printk( "executing thread is NULL\n" );
     77    }
    5878  #endif
    5979
Note: See TracChangeset for help on using the changeset viewer.