summaryrefslogtreecommitdiffstats
path: root/src/spdk/dpdk/lib/librte_node/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spdk/dpdk/lib/librte_node/log.c')
-rw-r--r--src/spdk/dpdk/lib/librte_node/log.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/spdk/dpdk/lib/librte_node/log.c b/src/spdk/dpdk/lib/librte_node/log.c
new file mode 100644
index 000000000..f035f91e8
--- /dev/null
+++ b/src/spdk/dpdk/lib/librte_node/log.c
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(C) 2020 Marvell International Ltd.
+ */
+
+#include "node_private.h"
+
+int rte_node_logtype;
+
+RTE_INIT(rte_node_init_log)
+{
+ rte_node_logtype = rte_log_register("lib.node");
+ if (rte_node_logtype >= 0)
+ rte_log_set_level(rte_node_logtype, RTE_LOG_INFO);
+}