Changeset 57f3969a in rtems


Ignore:
Timestamp:
Dec 2, 2017, 7:32:37 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
76bd25e
Parents:
dda8142f
git-author:
Sebastian Huber <sebastian.huber@…> (12/02/17 19:32:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/02/17 19:33:15)
Message:

bsps: Print internal error text

Update #3248.

File:
1 edited

Legend:

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

    rdda8142f r57f3969a  
    2323      "\n"
    2424      "*** FATAL ***\n"
    25       "fatal source: %i (%s)\n"
    26       "fatal code: %ju (0x%08jx)\n"
    27       "RTEMS version: %s\n"
    28       "RTEMS tools: %s\n",
     25      "fatal source: %i (%s)\n",
    2926      source,
    30       rtems_fatal_source_text( source ),
    31       (uintmax_t) code,
    32       (uintmax_t) code,
    33       rtems_version(),
    34       __VERSION__
     27      rtems_fatal_source_text( source )
    3528    );
    3629  #endif
     
    4033      rtems_exception_frame_print( (const rtems_exception_frame *) code );
    4134    }
     35  #endif
     36
     37  #if BSP_VERBOSE_FATAL_EXTENSION
     38    else if ( source == INTERNAL_ERROR_CORE ) {
     39      printk(
     40        "fatal code: %ju (%s)\n",
     41        (uintmax_t) code,
     42        rtems_internal_error_text( code )
     43      );
     44    } else {
     45      printk(
     46        "fatal code: %ju (0x%08jx)\n",
     47        (uintmax_t) code,
     48        (uintmax_t) code
     49      );
     50    }
     51
     52    printk(
     53      "RTEMS version: %s\n"
     54      "RTEMS tools: %s\n",
     55      rtems_version(),
     56      __VERSION__
     57    );
    4258  #endif
    4359
Note: See TracChangeset for help on using the changeset viewer.