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
/
create.c
diff --git
a/src/bin/lttng/commands/create.c
b/src/bin/lttng/commands/create.c
index 677c17329070276f6530139f315c1e17409ff0f5..b266c10a9397a8e250c0c156a5d7e2fef547db46 100644
(file)
--- a/
src/bin/lttng/commands/create.c
+++ b/
src/bin/lttng/commands/create.c
@@
-7,7
+7,6
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
-#include <assert.h>
#include <ctype.h>
#include <popt.h>
#include <stdio.h>
#include <ctype.h>
#include <popt.h>
#include <stdio.h>
@@
-89,8
+88,8
@@
static int mi_created_session(const char *session_name)
struct lttng_session *sessions;
/* session_name should not be null */
struct lttng_session *sessions;
/* session_name should not be null */
-
assert
(session_name);
-
assert
(writer);
+
LTTNG_ASSERT
(session_name);
+
LTTNG_ASSERT
(writer);
count = lttng_list_sessions(&sessions);
if (count < 0) {
count = lttng_list_sessions(&sessions);
if (count < 0) {
This page took
0.023373 seconds
and
4
git commands to generate.