X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fctf-writer%2Fobject.h;h=003565471cab9918ff6762c7a9916a11b371f1e4;hb=91d8147391efdc4d42cc4e1c171a65c0372a008f;hp=32317218537339be28901b88dad996df12715e52;hpb=4e87f509dec8aed765d6b6b4c868be65b8580c37;p=babeltrace.git diff --git a/src/ctf-writer/object.h b/src/ctf-writer/object.h index 32317218..00356547 100644 --- a/src/ctf-writer/object.h +++ b/src/ctf-writer/object.h @@ -25,7 +25,7 @@ * SOFTWARE. */ -#include "common/babeltrace.h" +#include "common/macros.h" #include "common/assert.h" #include @@ -272,7 +272,7 @@ void *bt_ctf_object_get_no_null_check(struct bt_ctf_object *obj) BT_ASSERT(obj); BT_ASSERT(obj->is_shared); - if (unlikely(obj->parent && bt_ctf_object_get_ref_count(obj) == 0)) { + if (G_UNLIKELY(obj->parent && bt_ctf_object_get_ref_count(obj) == 0)) { #ifdef BT_LOGV BT_LOGV("Incrementing object's parent's reference count: " "addr=%p, parent-addr=%p", obj, obj->parent);