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
/
bin
/
lttng
/
commands
/
disable_events.c
diff --git
a/src/bin/lttng/commands/disable_events.c
b/src/bin/lttng/commands/disable_events.c
index 0bfd0c506c850e4fedca383615c13d67365a7006..687da1f92abf63e47466f7bc640e697fa5029341 100644
(file)
--- a/
src/bin/lttng/commands/disable_events.c
+++ b/
src/bin/lttng/commands/disable_events.c
@@
-13,7
+13,6
@@
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <assert.h>
#include <common/mi-lttng.h>
#include <lttng/domain-internal.h>
#include <common/mi-lttng.h>
#include <lttng/domain-internal.h>
@@
-111,8
+110,8
@@
static int mi_print_event(const char *event_name, int enabled, int success)
{
int ret;
{
int ret;
-
assert
(writer);
-
assert
(event_name);
+
LTTNG_ASSERT
(writer);
+
LTTNG_ASSERT
(event_name);
/* Open event element */
ret = mi_lttng_writer_open_element(writer, config_element_event);
/* Open event element */
ret = mi_lttng_writer_open_element(writer, config_element_event);
@@
-175,7
+174,7
@@
static int disable_events(char *session_name)
dom.type = LTTNG_DOMAIN_PYTHON;
} else {
/* Checked by the caller. */
dom.type = LTTNG_DOMAIN_PYTHON;
} else {
/* Checked by the caller. */
- a
ssert(0
);
+ a
bort(
);
}
channel_name = opt_channel_name;
}
channel_name = opt_channel_name;
This page took
0.026006 seconds
and
5
git commands to generate.