mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-22 05:47:17 +08:00
Use LOG_EMERG for panic()
This commit is contained in:
parent
9128d209e5
commit
378b5c2fa6
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user