source: rtems/cpukit/sapi/src/panic.c

Last change on this file was bcef89f2, checked in by Sebastian Huber <sebastian.huber@…>, on 05/19/23 at 06:18:25

Update company name

The embedded brains GmbH & Co. KG is the legal successor of embedded
brains GmbH.

  • Property mode set to 100644
File size: 660 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup ErrorPanicSupport
5 *
6 * @brief This source file contains the implementation of
7 *   rtems_panic().
8 */
9
10/*
11 * Copyright (c) 2017 embedded brains GmbH & Co. KG
12 *
13 * The license and distribution terms for this file may be
14 * found in the file LICENSE in this distribution or at
15 * http://www.rtems.com/license/LICENSE.
16 */
17
18#ifdef HAVE_CONFIG_H
19#include "config.h"
20#endif
21
22#include <rtems/fatal.h>
23#include <rtems/bspIo.h>
24
25#include <stdarg.h>
26
27void rtems_panic( const char *fmt, ... )
28{
29  va_list ap;
30
31  va_start( ap, fmt );
32  vprintk( fmt, ap );
33  va_end( ap);
34
35  _Terminate( RTEMS_FATAL_SOURCE_PANIC, (Internal_errors_t) fmt );
36}
Note: See TracBrowser for help on using the repository browser.