1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
11 __rte_panic(const char *funcname, const char *format, ...)
15 rte_log(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, "PANIC in %s():\n", funcname);
17 rte_vlog(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, format, ap);
20 abort(); /* generate a coredump if enabled */
24 * Like rte_panic this terminates the application. However, no traceback is
25 * provided and no core-dump is generated.
28 rte_exit(int exit_code, const char *format, ...)
33 RTE_LOG(CRIT, EAL, "Error - exiting with code: %d\n"
34 " Cause: ", exit_code);
37 rte_vlog(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, format, ap);
40 if (rte_eal_cleanup() != 0)
42 "EAL could not release all resources\n");