a083f8cc77
Since the kernel modules are moved to kernel/ directory, there is no need anymore for the sub-directory eal/ in linux/, freebsd/ and windows/. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Acked-by: David Marchand <david.marchand@redhat.com>
21 lines
463 B
C
21 lines
463 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2019 Intel Corporation
|
|
*/
|
|
|
|
#include <stdarg.h>
|
|
#include <rte_log.h>
|
|
#include <rte_debug.h>
|
|
|
|
/* call abort(), it will generate a coredump if enabled */
|
|
void
|
|
__rte_panic(const char *funcname, const char *format, ...)
|
|
{
|
|
va_list ap;
|
|
|
|
rte_log(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, "PANIC in %s():\n", funcname);
|
|
va_start(ap, format);
|
|
rte_vlog(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, format, ap);
|
|
va_end(ap);
|
|
abort();
|
|
}
|