summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/error.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-21 11:29:01 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-22 09:40:23 +0100
commit15e19273b2a6ebda3b2d55b28d693e7b8a0740b2 (patch)
tree4fb0c67c21f6f9f947e5400fc0a40e03acff00eb /cpukit/libcsupport/src/error.c
parentINTERNAL_ERROR_POSIX_INIT_THREAD_ENTRY_IS_NULL (diff)
downloadrtems-15e19273b2a6ebda3b2d55b28d693e7b8a0740b2.tar.bz2
sapi: New implementation of rtems_panic()
The previous rtems_panic() implementation was quite heavy weight. It depended on _exit() which calls the global destructors. It used fprintf(stderr, ...) for output which depends on an initialized console device and the complex fprintf(). Introduce a new fatal source RTEMS_FATAL_SOURCE_PANIC for rtems_panic() and output via vprintk(). Update #3244.
Diffstat (limited to 'cpukit/libcsupport/src/error.c')
-rw-r--r--cpukit/libcsupport/src/error.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/cpukit/libcsupport/src/error.c b/cpukit/libcsupport/src/error.c
index 44cc1ee688..0e65f8929b 100644
--- a/cpukit/libcsupport/src/error.c
+++ b/cpukit/libcsupport/src/error.c
@@ -98,18 +98,3 @@ int rtems_error(
return chars_written;
}
-
-void rtems_panic(
- const char *printf_format,
- ...
-)
-{
- va_list arglist;
-
- va_start(arglist, printf_format);
- (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
- va_end(arglist);
-
- rtems_error(0, "fatal error, exiting");
- _exit(errno);
-}