Standardize log levels used by logging statements across the project
[babeltrace.git] / src / lib / graph / graph.h
index c41d13162e91e03aee7cb1428480c1d1d07b7562..e108d508c0661ccd89c1ded1ae508a0e082fa9a0 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <babeltrace2/graph/graph.h>
 #include <babeltrace2/graph/message-const.h>
-#include "common/babeltrace.h"
+#include "common/macros.h"
 #include "lib/object.h"
 #include "lib/object-pool.h"
 #include "common/assert.h"
@@ -215,7 +215,7 @@ enum bt_graph_status bt_graph_configure(struct bt_graph *graph)
 
        BT_ASSERT(graph->config_state != BT_GRAPH_CONFIGURATION_STATE_FAULTY);
 
-       if (likely(graph->config_state ==
+       if (G_LIKELY(graph->config_state ==
                        BT_GRAPH_CONFIGURATION_STATE_CONFIGURED)) {
                goto end;
        }
@@ -292,8 +292,8 @@ static inline
 void bt_graph_make_faulty(struct bt_graph *graph)
 {
        graph->config_state = BT_GRAPH_CONFIGURATION_STATE_FAULTY;
-#ifdef BT_LIB_LOGD
-       BT_LIB_LOGD("Set graph's state to faulty: %![graph-]+g", graph);
+#ifdef BT_LIB_LOGI
+       BT_LIB_LOGI("Set graph's state to faulty: %![graph-]+g", graph);
 #endif
 }
 
This page took 0.024182 seconds and 4 git commands to generate.