diff options
Diffstat (limited to 'src/seastar/dpdk/drivers/bus/vdev/vdev_logs.h')
-rw-r--r-- | src/seastar/dpdk/drivers/bus/vdev/vdev_logs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/seastar/dpdk/drivers/bus/vdev/vdev_logs.h b/src/seastar/dpdk/drivers/bus/vdev/vdev_logs.h new file mode 100644 index 000000000..875937419 --- /dev/null +++ b/src/seastar/dpdk/drivers/bus/vdev/vdev_logs.h @@ -0,0 +1,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_ */ |