X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fsnapshot.c;h=51871f7855d2350fb01a38969773c58f903fdd6f;hp=ec10f8d636dbca1cd5ba457763fa09924800d248;hb=a0377dfefe40662ba7d68617bce6ff467114136c;hpb=cc3b9644f017a91d347d7a414387292e3175635e diff --git a/src/common/snapshot.c b/src/common/snapshot.c index ec10f8d63..51871f785 100644 --- a/src/common/snapshot.c +++ b/src/common/snapshot.c @@ -13,7 +13,6 @@ #include #include -#include #include LTTNG_HIDDEN @@ -55,8 +54,8 @@ bool lttng_snapshot_output_is_equal( { bool equal = false; - assert(a); - assert(b); + LTTNG_ASSERT(a); + LTTNG_ASSERT(b); if (a->max_size != b->max_size) { goto end; @@ -188,8 +187,8 @@ enum lttng_error_code lttng_snapshot_output_mi_serialize( int ret; enum lttng_error_code ret_code; - assert(output); - assert(writer); + LTTNG_ASSERT(output); + LTTNG_ASSERT(writer); /* Open output element. */ ret = mi_lttng_writer_open_element(writer,