aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tap/tap_log.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tap/tap_log.h')
-rw-r--r--drivers/net/tap/tap_log.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/tap/tap_log.h b/drivers/net/tap/tap_log.h
new file mode 100644
index 00000000..fa06843a
--- /dev/null
+++ b/drivers/net/tap/tap_log.h
@@ -0,0 +1,10 @@
+/* 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)