xref: /dpdk/drivers/regex/mlx5/mlx5_regex_utils.h (revision 2d2546ad6b5ffe43fb9efeb92b606029b86af768)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2020 Mellanox Technologies, Ltd
3  */
4 
5 #ifndef RTE_PMD_MLX5_REGEX_UTILS_H_
6 #define RTE_PMD_MLX5_REGEX_UTILS_H_
7 
8 #include <mlx5_common.h>
9 
10 extern int mlx5_regex_logtype;
11 
12 #define MLX5_REGEX_LOG_PREFIX "mlx5_regex"
13 /* Generic printf()-like logging macro with automatic line feed. */
14 #define DRV_LOG(level, ...) \
15 	PMD_DRV_LOG_(level, mlx5_regex_logtype, MLX5_REGEX_LOG_PREFIX, \
16 		__VA_ARGS__ PMD_DRV_LOG_STRIP PMD_DRV_LOG_OPAREN, \
17 		PMD_DRV_LOG_CPAREN)
18 
19 #endif /* RTE_PMD_MLX5_REGEX_UTILS_H_ */
20