]> git.proxmox.com Git - ceph.git/blob - ceph/src/seastar/dpdk/drivers/net/atlantic/atl_logs.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / seastar / dpdk / drivers / net / atlantic / atl_logs.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2018 Aquantia Corporation
3 */
4 #ifndef ATL_LOGS_H
5 #define ATL_LOGS_H
6
7 #include <rte_log.h>
8
9 extern int atl_logtype_init;
10
11 #define PMD_INIT_LOG(level, fmt, args...) \
12 rte_log(RTE_LOG_ ## level, atl_logtype_init, \
13 "%s(): " fmt "\n", __func__, ##args)
14
15 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
16
17 #define PMD_RX_LOG(level, fmt, args...) \
18 RTE_LOG_DP(level, PMD, "%s(): " fmt "\n", __func__, ## args)
19
20 #define PMD_TX_LOG(level, fmt, args...) \
21 RTE_LOG_DP(level, PMD, "%s(): " fmt "\n", __func__, ## args)
22
23 extern int atl_logtype_driver;
24 #define PMD_DRV_LOG_RAW(level, fmt, args...) \
25 rte_log(RTE_LOG_ ## level, atl_logtype_driver, "%s(): " fmt, \
26 __func__, ## args)
27
28 #define PMD_DRV_LOG(level, fmt, args...) \
29 PMD_DRV_LOG_RAW(level, fmt "\n", ## args)
30
31 #endif