projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: always use sysconf to get the page size
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
disable_channels.c
diff --git
a/src/bin/lttng/commands/disable_channels.c
b/src/bin/lttng/commands/disable_channels.c
index 344be237d26c2d4581c26c50363dbbe7558293ff..cf9f20bb6d3fd2a539651c6c08d6a09699ca68c5 100644
(file)
--- a/
src/bin/lttng/commands/disable_channels.c
+++ b/
src/bin/lttng/commands/disable_channels.c
@@
-13,9
+13,9
@@
#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 <common/mi-lttng.h>
+#include <lttng/domain-internal.h>
#include "../command.h"
#include "../command.h"
@@
-54,8
+54,8
@@
static int mi_partial_channel_print(char *channel_name, unsigned int enabled,
{
int ret;
{
int ret;
-
assert
(writer);
-
assert
(channel_name);
+
LTTNG_ASSERT
(writer);
+
LTTNG_ASSERT
(channel_name);
/* Open channel element */
ret = mi_lttng_writer_open_element(writer, config_element_channel);
/* Open channel element */
ret = mi_lttng_writer_open_element(writer, config_element_channel);
@@
-112,7
+112,7
@@
static int disable_channels(char *session_name)
dom.type = LTTNG_DOMAIN_UST;
} else {
/* Checked by the caller. */
dom.type = LTTNG_DOMAIN_UST;
} else {
/* Checked by the caller. */
- a
ssert(0
);
+ a
bort(
);
}
handle = lttng_create_handle(session_name, &dom);
}
handle = lttng_create_handle(session_name, &dom);
@@
-155,7
+155,8
@@
static int disable_channels(char *session_name)
} else {
MSG("%s channel %s disabled for session %s",
} else {
MSG("%s channel %s disabled for session %s",
- get_domain_str(dom.type), channel_name, session_name);
+ lttng_domain_type_str(dom.type),
+ channel_name, session_name);
enabled = 0;
success = 1;
}
enabled = 0;
success = 1;
}
This page took
0.032949 seconds
and
4
git commands to generate.