doc: add Meson coding style to contributors guide
[dpdk.git] / lib / librte_graph / graph.c
index 0ea83df..7224b00 100644 (file)
@@ -18,7 +18,6 @@
 static struct graph_head graph_list = STAILQ_HEAD_INITIALIZER(graph_list);
 static rte_spinlock_t graph_lock = RTE_SPINLOCK_INITIALIZER;
 static rte_graph_t graph_id;
-int rte_graph_logtype;
 
 #define GRAPH_ID_CHECK(id) ID_CHECK(id, graph_id)
 
@@ -579,9 +578,4 @@ rte_graph_max_count(void)
        return graph_id;
 }
 
-RTE_INIT(rte_graph_init_log)
-{
-       rte_graph_logtype = rte_log_register("lib.graph");
-       if (rte_graph_logtype >= 0)
-               rte_log_set_level(rte_graph_logtype, RTE_LOG_INFO);
-}
+RTE_LOG_REGISTER(rte_graph_logtype, lib.graph, INFO);