| 12 | #include <rte_errno.h> |
| 13 | |
| 14 | void |
| 15 | __rte_panic(const char *funcname, const char *format, ...) |
| 16 | { |
| 17 | va_list ap; |
| 18 | |
| 19 | rte_log(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, "PANIC in %s():\n", funcname); |
| 20 | va_start(ap, format); |
| 21 | rte_vlog(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, format, ap); |
| 22 | va_end(ap); |
| 23 | rte_dump_stack(); |
| 24 | abort(); /* generate a coredump if enabled */ |
| 25 | } |
| 26 | |
| 27 | /* |
| 28 | * Like rte_panic this terminates the application. However, no traceback is |
nothing calls this directly
no test coverage detected