1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright 2018-2019 NXP
8 extern int pfe_logtype_pmd;
10 /* PMD related logs */
11 #define PFE_PMD_LOG(level, fmt, args...) \
12 rte_log(RTE_LOG_ ## level, pfe_logtype_pmd, "pfe_net: %s()" \
13 fmt "\n", __func__, ##args)
15 #define PMD_INIT_FUNC_TRACE() PFE_PMD_LOG(DEBUG, " >>")
17 #define PFE_PMD_DEBUG(fmt, args...) \
18 PFE_PMD_LOG(DEBUG, fmt, ## args)
19 #define PFE_PMD_ERR(fmt, args...) \
20 PFE_PMD_LOG(ERR, fmt, ## args)
21 #define PFE_PMD_INFO(fmt, args...) \
22 PFE_PMD_LOG(INFO, fmt, ## args)
24 #define PFE_PMD_WARN(fmt, args...) \
25 PFE_PMD_LOG(WARNING, fmt, ## args)
27 /* DP Logs, toggled out at compile time if level lower than current level */
28 #define PFE_DP_LOG(level, fmt, args...) \
29 RTE_LOG_DP(level, PMD, fmt, ## args)
31 #endif /* _PFE_LOGS_H_ */