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
/
lib
/
lttng-ctl
/
destruction-handle.c
diff --git
a/src/lib/lttng-ctl/destruction-handle.c
b/src/lib/lttng-ctl/destruction-handle.c
index 6d8a26b113481914ff01e8e691d23eec23699750..26ae7d3065f863840143020cffe61e7e982e101e 100644
(file)
--- a/
src/lib/lttng-ctl/destruction-handle.c
+++ b/
src/lib/lttng-ctl/destruction-handle.c
@@
-101,7
+101,7
@@
int handle_state_transition(struct lttng_destruction_handle *handle)
{
int ret = 0;
{
int ret = 0;
-
assert
(handle->communication.bytes_left_to_receive == 0);
+
LTTNG_ASSERT
(handle->communication.bytes_left_to_receive == 0);
switch (handle->communication.state) {
case COMMUNICATION_STATE_RECEIVE_LTTNG_MSG:
switch (handle->communication.state) {
case COMMUNICATION_STATE_RECEIVE_LTTNG_MSG:
@@
-129,7
+129,7
@@
int handle_state_transition(struct lttng_destruction_handle *handle)
msg->data_size);
ret = lttng_dynamic_buffer_set_size(
&handle->communication.buffer, 0);
msg->data_size);
ret = lttng_dynamic_buffer_set_size(
&handle->communication.buffer, 0);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
break;
}
case COMMUNICATION_STATE_RECEIVE_COMMAND_HEADER:
break;
}
case COMMUNICATION_STATE_RECEIVE_COMMAND_HEADER:
This page took
0.023176 seconds
and
4
git commands to generate.