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
/
add_context.c
diff --git
a/src/bin/lttng/commands/add_context.c
b/src/bin/lttng/commands/add_context.c
index b33eb1d14ef22545b73baeceed6d6a19424b9e8c..90a54f7eef87eae4a884737a9d8a8bba67d3d98f 100644
(file)
--- a/
src/bin/lttng/commands/add_context.c
+++ b/
src/bin/lttng/commands/add_context.c
@@
-15,10
+15,10
@@
#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 <urcu/list.h>
#include <urcu/list.h>
+#include <lttng/domain-internal.h>
#include <common/mi-lttng.h>
#include "../command.h"
#include <common/mi-lttng.h>
#include "../command.h"
@@
-558,7
+558,7
@@
enum lttng_domain_type get_domain(void)
} else if (opt_log4j) {
return LTTNG_DOMAIN_LOG4J;
} else {
} else if (opt_log4j) {
return LTTNG_DOMAIN_LOG4J;
} else {
- a
ssert(0
);
+ a
bort(
);
}
}
}
}
@@
-810,11
+810,13
@@
static int add_context(char *session_name)
} else {
if (opt_channel_name) {
MSG("%s context %s added to channel %s",
} else {
if (opt_channel_name) {
MSG("%s context %s added to channel %s",
- get_domain_str(dom.type), type->opt->symbol,
+ lttng_domain_type_str(dom.type),
+ type->opt->symbol,
opt_channel_name);
} else {
MSG("%s context %s added to all channels",
opt_channel_name);
} else {
MSG("%s context %s added to all channels",
- get_domain_str(dom.type), type->opt->symbol);
+ lttng_domain_type_str(dom.type),
+ type->opt->symbol);
}
success = 1;
}
}
success = 1;
}
This page took
0.025157 seconds
and
4
git commands to generate.