net/failsafe: fix crash on slave queue release
[dpdk.git] / drivers / net / axgbe / axgbe_logs.h
1 /*   SPDX-License-Identifier: BSD-3-Clause
2  *   Copyright(c) 2018 Advanced Micro Devices, Inc. All rights reserved.
3  */
4
5 #ifndef _AXGBE_LOGS_H_
6 #define _AXGBE_LOGS_H_
7
8 #include <stdio.h>
9
10 extern int axgbe_logtype_init;
11 #define PMD_INIT_LOG(level, fmt, args...) \
12         rte_log(RTE_LOG_ ## level, axgbe_logtype_init, "%s(): " fmt "\n", \
13                 __func__, ##args)
14
15 #ifdef RTE_LIBRTE_AXGBE_PMD_DEBUG
16 #define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>")
17 #else
18 #define PMD_INIT_FUNC_TRACE() do { } while (0)
19 #endif
20
21 extern int axgbe_logtype_driver;
22 #define PMD_DRV_LOG(level, fmt, args...) \
23         rte_log(RTE_LOG_ ## level, axgbe_logtype_driver, "%s(): " fmt, \
24                 __func__, ## args)
25
26 #endif /* _AXGBE_LOGS_H_ */