2019-06-25 11:12:58 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2017 Intel Corporation
|
2017-04-21 10:43:26 +00:00
|
|
|
*/
|
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
#ifndef _VDEV_LOGS_H_
|
|
|
|
#define _VDEV_LOGS_H_
|
2017-04-21 10:43:26 +00:00
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
#include <rte_log.h>
|
2017-04-21 10:43:26 +00:00
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
extern int vdev_logtype_bus;
|
2017-04-21 10:43:26 +00:00
|
|
|
|
2018-05-15 09:49:22 +00:00
|
|
|
#define VDEV_LOG(level, fmt, args...) \
|
|
|
|
rte_log(RTE_LOG_ ## level, vdev_logtype_bus, "%s(): " fmt "\n", \
|
|
|
|
__func__, ##args)
|
|
|
|
|
|
|
|
#endif /* _VDEV_LOGS_H_ */
|