53ffd9f080
Add Windows specific logic for eal.c, eal_lcore.c, eal_debug.c and eal_thread.c. Updated header files to contain suitable function declarations. Signed-off-by: Anand Rawat <anand.rawat@intel.com> Signed-off-by: Pallavi Kadam <pallavi.kadam@intel.com> Reviewed-by: Jeff Shaw <jeffrey.b.shaw@intel.com> Reviewed-by: Ranjit Menon <ranjit.menon@intel.com> Acked-by: Harini Ramakrishnan <harini.ramakrishnan@microsoft.com>
20 lines
440 B
C
20 lines
440 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2019 Intel Corporation
|
|
*/
|
|
|
|
#include <stdarg.h>
|
|
#include <rte_log.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();
|
|
}
|