eal: move OS-specific sub-directories
[dpdk.git] / lib / librte_eal / windows / eal_debug.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019 Intel Corporation
3  */
4
5 #include <stdarg.h>
6 #include <rte_log.h>
7 #include <rte_debug.h>
8
9  /* call abort(), it will generate a coredump if enabled */
10 void
11 __rte_panic(const char *funcname, const char *format, ...)
12 {
13         va_list ap;
14
15         rte_log(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, "PANIC in %s():\n", funcname);
16         va_start(ap, format);
17         rte_vlog(RTE_LOG_CRIT, RTE_LOGTYPE_EAL, format, ap);
18         va_end(ap);
19         abort();
20 }