event/opdl: add OPDL ring infrastructure library
[dpdk.git] / drivers / event / opdl / opdl_log.h
1 /*-
2  * SPDX-License-Identifier: BSD-3-Clause
3  * Copyright(c) 2010-2014 Intel Corporation
4  */
5
6 #ifndef _OPDL_LOGS_H_
7 #define _OPDL_LOGS_H_
8
9 #include <rte_log.h>
10
11 extern int opdl_logtype_driver;
12
13 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
14         rte_log(RTE_LOG_ ## level, opdl_logtype_driver, "%s(): " fmt, \
15                         __func__, ## args)
16
17 #define PMD_DRV_LOG(level, fmt, args...) \
18         PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
19
20
21
22 #endif /* _OPDL_LOGS_H_ */