xref: /dpdk/drivers/net/intel/cpfl/cpfl_logs.h (revision c1d145834f287aa8cf53de914618a7312f2c360e)
1*c1d14583SBruce Richardson /* SPDX-License-Identifier: BSD-3-Clause
2*c1d14583SBruce Richardson  * Copyright(c) 2023 Intel Corporation
3*c1d14583SBruce Richardson  */
4*c1d14583SBruce Richardson 
5*c1d14583SBruce Richardson #ifndef _CPFL_LOGS_H_
6*c1d14583SBruce Richardson #define _CPFL_LOGS_H_
7*c1d14583SBruce Richardson 
8*c1d14583SBruce Richardson #include <rte_log.h>
9*c1d14583SBruce Richardson 
10*c1d14583SBruce Richardson extern int cpfl_logtype_init;
11*c1d14583SBruce Richardson #define RTE_LOGTYPE_CPFL_INIT cpfl_logtype_init
12*c1d14583SBruce Richardson extern int cpfl_logtype_driver;
13*c1d14583SBruce Richardson #define RTE_LOGTYPE_CPFL_DRIVER cpfl_logtype_driver
14*c1d14583SBruce Richardson 
15*c1d14583SBruce Richardson #define PMD_INIT_LOG(level, ...) \
16*c1d14583SBruce Richardson 	RTE_LOG_LINE_PREFIX(level, CPFL_INIT, "%s(): ",  __func__, __VA_ARGS__)
17*c1d14583SBruce Richardson 
18*c1d14583SBruce Richardson #define PMD_DRV_LOG(level, ...) \
19*c1d14583SBruce Richardson 	RTE_LOG_LINE_PREFIX(level, CPFL_DRIVER, "%s(): ", __func__, __VA_ARGS__)
20*c1d14583SBruce Richardson 
21*c1d14583SBruce Richardson #endif /* _CPFL_LOGS_H_ */
22