projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Always evaluate BT_ASSERT(); add BT_ASSERT_DBG() for debug mode only
[babeltrace.git]
/
src
/
plugins
/
text
/
details
/
obj-lifetime-mgmt.c
diff --git
a/src/plugins/text/details/obj-lifetime-mgmt.c
b/src/plugins/text/details/obj-lifetime-mgmt.c
index 8da5cf162cef562b28237bba37ed04c069c1f6d5..41a2a31e0c3c02d456cfc8619d88e4f49fe9a527 100644
(file)
--- a/
src/plugins/text/details/obj-lifetime-mgmt.c
+++ b/
src/plugins/text/details/obj-lifetime-mgmt.c
@@
-48,8
+48,8
@@
struct details_trace_class_meta *borrow_trace_class_meta(
{
struct details_trace_class_meta *details_tc_meta;
{
struct details_trace_class_meta *details_tc_meta;
- BT_ASSERT(ctx->details_comp->cfg.with_meta);
- BT_ASSERT(ctx->details_comp->meta);
+ BT_ASSERT
_DBG
(ctx->details_comp->cfg.with_meta);
+ BT_ASSERT
_DBG
(ctx->details_comp->meta);
details_tc_meta = g_hash_table_lookup(ctx->details_comp->meta, tc);
if (!details_tc_meta) {
/* Not found: create one */
details_tc_meta = g_hash_table_lookup(ctx->details_comp->meta, tc);
if (!details_tc_meta) {
/* Not found: create one */
@@
-93,9
+93,9
@@
bool details_need_to_write_meta_object(struct details_write_ctx *ctx,
goto end;
}
goto end;
}
- BT_ASSERT(ctx->details_comp->meta);
+ BT_ASSERT
_DBG
(ctx->details_comp->meta);
details_tc_meta = g_hash_table_lookup(ctx->details_comp->meta, tc);
details_tc_meta = g_hash_table_lookup(ctx->details_comp->meta, tc);
- BT_ASSERT(details_tc_meta);
+ BT_ASSERT
_DBG
(details_tc_meta);
need_to_write =
!g_hash_table_lookup(details_tc_meta->objects, obj);
need_to_write =
!g_hash_table_lookup(details_tc_meta->objects, obj);
@@
-128,7
+128,7
@@
bool details_need_to_write_trace_class(struct details_write_ctx *ctx,
goto end;
}
goto end;
}
- BT_ASSERT(ctx->details_comp->meta);
+ BT_ASSERT
_DBG
(ctx->details_comp->meta);
details_tc_meta = g_hash_table_lookup(ctx->details_comp->meta, tc);
need_to_write = !details_tc_meta;
details_tc_meta = g_hash_table_lookup(ctx->details_comp->meta, tc);
need_to_write = !details_tc_meta;
@@
-190,8
+190,8
@@
int details_trace_unique_id(struct details_write_ctx *ctx,
int ret = 0;
struct details_trace *details_trace = NULL;
int ret = 0;
struct details_trace *details_trace = NULL;
- BT_ASSERT(unique_id);
- BT_ASSERT(ctx->details_comp->traces);
+ BT_ASSERT
_DBG
(unique_id);
+ BT_ASSERT
_DBG
(ctx->details_comp->traces);
if (!bt_g_hash_table_contains(ctx->details_comp->traces,
trace)) {
/* Not found: create one */
if (!bt_g_hash_table_contains(ctx->details_comp->traces,
trace)) {
/* Not found: create one */
This page took
0.02663 seconds
and
4
git commands to generate.