projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: get rid of missing-field-initializers warning in test_bin_info.c
[babeltrace.git]
/
src
/
ctf-writer
/
object.h
diff --git
a/src/ctf-writer/object.h
b/src/ctf-writer/object.h
index 003565471cab9918ff6762c7a9916a11b371f1e4..1e1b7869bce572719d035e5f42028d4594faf5dd 100644
(file)
--- a/
src/ctf-writer/object.h
+++ b/
src/ctf-writer/object.h
@@
-122,8
+122,8
@@
void bt_ctf_object_set_parent(struct bt_ctf_object *child, struct bt_ctf_object
BT_ASSERT(child);
BT_ASSERT(child->is_shared);
BT_ASSERT(child);
BT_ASSERT(child->is_shared);
-#ifdef BT_LOG
V
- BT_LOG
V
("Setting object's parent: addr=%p, parent-addr=%p",
+#ifdef BT_LOG
T
+ BT_LOG
T
("Setting object's parent: addr=%p, parent-addr=%p",
child, parent);
#endif
child, parent);
#endif
@@
-169,8
+169,8
@@
void bt_ctf_object_with_parent_release_func(struct bt_ctf_object *obj)
*/
struct bt_ctf_object *parent = obj->parent;
*/
struct bt_ctf_object *parent = obj->parent;
-#ifdef BT_LOG
V
- BT_LOG
V
("Releasing parented object: addr=%p, ref-count=%llu, "
+#ifdef BT_LOG
T
+ BT_LOG
T
("Releasing parented object: addr=%p, ref-count=%llu, "
"parent-addr=%p, parent-ref-count=%llu",
obj, obj->ref_count,
parent, parent->ref_count);
"parent-addr=%p, parent-ref-count=%llu",
obj, obj->ref_count,
parent, parent->ref_count);
@@
-255,8
+255,8
@@
void *bt_ctf_object_get_no_null_check_no_parent_check(struct bt_ctf_object *obj)
BT_ASSERT(obj);
BT_ASSERT(obj->is_shared);
BT_ASSERT(obj);
BT_ASSERT(obj->is_shared);
-#ifdef BT_LOG
V
- BT_LOG
V
("Incrementing object's reference count: %llu -> %llu: "
+#ifdef BT_LOG
T
+ BT_LOG
T
("Incrementing object's reference count: %llu -> %llu: "
"addr=%p, cur-count=%llu, new-count=%llu",
obj->ref_count, obj->ref_count + 1,
obj, obj->ref_count, obj->ref_count + 1);
"addr=%p, cur-count=%llu, new-count=%llu",
obj->ref_count, obj->ref_count + 1,
obj, obj->ref_count, obj->ref_count + 1);
@@
-273,16
+273,16
@@
void *bt_ctf_object_get_no_null_check(struct bt_ctf_object *obj)
BT_ASSERT(obj->is_shared);
if (G_UNLIKELY(obj->parent && bt_ctf_object_get_ref_count(obj) == 0)) {
BT_ASSERT(obj->is_shared);
if (G_UNLIKELY(obj->parent && bt_ctf_object_get_ref_count(obj) == 0)) {
-#ifdef BT_LOG
V
- BT_LOG
V
("Incrementing object's parent's reference count: "
+#ifdef BT_LOG
T
+ BT_LOG
T
("Incrementing object's parent's reference count: "
"addr=%p, parent-addr=%p", obj, obj->parent);
#endif
bt_ctf_object_get_no_null_check(obj->parent);
}
"addr=%p, parent-addr=%p", obj, obj->parent);
#endif
bt_ctf_object_get_no_null_check(obj->parent);
}
-#ifdef BT_LOG
V
- BT_LOG
V
("Incrementing object's reference count: %llu -> %llu: "
+#ifdef BT_LOG
T
+ BT_LOG
T
("Incrementing object's reference count: %llu -> %llu: "
"addr=%p, cur-count=%llu, new-count=%llu",
obj->ref_count, obj->ref_count + 1,
obj, obj->ref_count, obj->ref_count + 1);
"addr=%p, cur-count=%llu, new-count=%llu",
obj->ref_count, obj->ref_count + 1,
obj, obj->ref_count, obj->ref_count + 1);
@@
-299,8
+299,8
@@
void bt_ctf_object_put_no_null_check(struct bt_ctf_object *obj)
BT_ASSERT(obj->is_shared);
BT_ASSERT(obj->ref_count > 0);
BT_ASSERT(obj->is_shared);
BT_ASSERT(obj->ref_count > 0);
-#ifdef BT_LOG
V
- BT_LOG
V
("Decrementing object's reference count: %llu -> %llu: "
+#ifdef BT_LOG
T
+ BT_LOG
T
("Decrementing object's reference count: %llu -> %llu: "
"addr=%p, cur-count=%llu, new-count=%llu",
obj->ref_count, obj->ref_count - 1,
obj, obj->ref_count, obj->ref_count - 1);
"addr=%p, cur-count=%llu, new-count=%llu",
obj->ref_count, obj->ref_count - 1,
obj, obj->ref_count, obj->ref_count - 1);
This page took
0.023983 seconds
and
4
git commands to generate.