X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fgraph.c;h=4645e0f5acfc1541ac8fdb909ec7463cfbbd2a1d;hp=11c7c29d17fd5a231861f6ea284c74d2fd94cabf;hb=d98421f2abfc5adab28ab7ee9b63537a6c7261cc;hpb=473e4d2acf7f005953af3893bb318222b728412e diff --git a/src/lib/graph/graph.c b/src/lib/graph/graph.c index 11c7c29d..4645e0f5 100644 --- a/src/lib/graph/graph.c +++ b/src/lib/graph/graph.c @@ -9,8 +9,7 @@ #include "lib/logging.h" #include "common/assert.h" -#include "lib/assert-pre.h" -#include "lib/assert-post.h" +#include "lib/assert-cond.h" #include #include #include @@ -865,7 +864,7 @@ bool component_name_exists(struct bt_graph *graph, const char *name) struct bt_component *other_comp = graph->components->pdata[i]; if (strcmp(name, bt_component_get_name(other_comp)) == 0) { - BT_ASSERT_PRE_MSG("Another component with the same name already exists in the graph: " + BT_ASSERT_COND_MSG("Another component with the same name already exists in the graph: " "%![other-comp-]+c, name=\"%s\"", other_comp, name); exists = true;