numam-dpdk/drivers/net/tap/tap_log.h
Stephen Hemminger 1b3b7caeb1 net/tap: convert to dynamic logging
Use new logging macro to convert all calls to RTE_LOG() into
new dynamic log type.

Also fix whitespace.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-04-27 18:00:59 +01:00

11 lines
267 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2017 6WIND S.A.
* Copyright 2017 Mellanox Technologies, Ltd
*/
extern int tap_logtype;
#define TAP_LOG(level, fmt, args...) \
rte_log(RTE_LOG_ ## level, tap_logtype, "%s(): " fmt "\n", \
__func__, ## args)