projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force usage of assert() condition when NDEBUG is defined
[lttng-tools.git]
/
src
/
common
/
snapshot.c
diff --git
a/src/common/snapshot.c
b/src/common/snapshot.c
index ec10f8d636dbca1cd5ba457763fa09924800d248..51871f7855d2350fb01a38969773c58f903fdd6f 100644
(file)
--- a/
src/common/snapshot.c
+++ b/
src/common/snapshot.c
@@
-13,7
+13,6
@@
#include <lttng/snapshot-internal.h>
#include <lttng/snapshot.h>
#include <lttng/snapshot-internal.h>
#include <lttng/snapshot.h>
-#include <assert.h>
#include <stdlib.h>
LTTNG_HIDDEN
#include <stdlib.h>
LTTNG_HIDDEN
@@
-55,8
+54,8
@@
bool lttng_snapshot_output_is_equal(
{
bool equal = false;
{
bool equal = false;
-
assert
(a);
-
assert
(b);
+
LTTNG_ASSERT
(a);
+
LTTNG_ASSERT
(b);
if (a->max_size != b->max_size) {
goto end;
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;
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,
/* Open output element. */
ret = mi_lttng_writer_open_element(writer,
This page took
0.024785 seconds
and
4
git commands to generate.