1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Advanced Micro Devices, Inc. All rights reserved.
10 extern int axgbe_logtype_init;
11 #define PMD_INIT_LOG(level, fmt, args...) \
12 rte_log(RTE_LOG_ ## level, axgbe_logtype_init, "%s(): " fmt "\n", \
15 #ifdef RTE_LIBRTE_AXGBE_PMD_DEBUG
16 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
18 #define PMD_INIT_FUNC_TRACE() do { } while (0)
21 extern int axgbe_logtype_driver;
22 #define PMD_DRV_LOG(level, fmt, args...) \
23 rte_log(RTE_LOG_ ## level, axgbe_logtype_driver, "%s(): " fmt, \
26 #endif /* _AXGBE_LOGS_H_ */