1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
2 * Copyright(c) 2018-2019 Pensando Systems, Inc. All rights reserved.
10 extern int ionic_logtype;
12 #define IONIC_PRINT(level, fmt, args...) rte_log(RTE_LOG_ ## level, \
13 ionic_logtype, "%s(): " fmt "\n", __func__, ##args)
15 #define IONIC_PRINT_CALL() IONIC_PRINT(DEBUG, " >>")
18 #define IONIC_WARN_ON(x) do { \
21 IONIC_PRINT(WARNING, "WARN_ON: \"" #x "\" at %s:%d\n", \
22 __func__, __LINE__); \
26 #endif /* _IONIC_LOGS_H_ */