Use LOG_EMERG for panic()

This commit is contained in:
Sebastian Huber 2017-05-09 14:09:49 +02:00
parent 9128d209e5
commit 378b5c2fa6

View File

@ -7,7 +7,7 @@
*/
/*
* Copyright (c) 2009-2013 embedded brains GmbH. All rights reserved.
* Copyright (c) 2009, 2017 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@ -42,6 +42,7 @@
#include <sys/param.h>
#include <sys/types.h>
#include <sys/syslog.h>
#include <sys/systm.h>
#include <stdarg.h>
@ -51,14 +52,10 @@ panic(const char *fmt, ...)
{
va_list ap;
printf("\n*** BSD PANIC *** ");
va_start(ap, fmt);
vprintf(fmt, ap);
vlog(LOG_EMERG, fmt, ap);
va_end(ap);
printf("\n");
rtems_task_suspend(RTEMS_SELF);
/* FIXME */