summaryrefslogtreecommitdiffstats
path: root/drivers/bus/vdev/vdev_logs.h
blob: 8759374193431acb1b3a5cb8f3531414572f4159 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright(c) 2017 Intel Corporation
 */

#ifndef _VDEV_LOGS_H_
#define _VDEV_LOGS_H_

#include <rte_log.h>

extern int vdev_logtype_bus;

#define VDEV_LOG(level, fmt, args...) \
	rte_log(RTE_LOG_ ## level, vdev_logtype_bus, "%s(): " fmt "\n", \
		__func__, ##args)

#endif /* _VDEV_LOGS_H_ */