projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: rename `get_domain_str()` -> `lttng_domain_type_str()`
[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 9909fec39c7ca49a7b9d6f75c1a34ffe09a955a6..0bfd0c506c850e4fedca383615c13d67365a7006 100644
(file)
--- a/
src/bin/lttng/commands/disable_events.c
+++ b/
src/bin/lttng/commands/disable_events.c
@@
-16,6
+16,7
@@
#include <assert.h>
#include <common/mi-lttng.h>
#include <assert.h>
#include <common/mi-lttng.h>
+#include <lttng/domain-internal.h>
#include "../command.h"
#include "../command.h"
@@
-106,7
+107,7
@@
const char *print_event_type(const enum lttng_event_type ev_type)
* enabled is 0 or 1
* success is 0 or 1
*/
* enabled is 0 or 1
* success is 0 or 1
*/
-static int mi_print_event(char *event_name, int enabled, int success)
+static int mi_print_event(c
onst c
har *event_name, int enabled, int success)
{
int ret;
{
int ret;
@@
-226,7
+227,7
@@
static int disable_events(char *session_name)
enabled = 0;
success = 1;
MSG("All %s events of type %s are disabled in channel %s",
enabled = 0;
success = 1;
MSG("All %s events of type %s are disabled in channel %s",
-
get_domain
_str(dom.type),
+
lttng_domain_type
_str(dom.type),
print_event_type(opt_event_type),
print_channel_name(channel_name));
}
print_event_type(opt_event_type),
print_channel_name(channel_name));
}
@@
-265,7
+266,7
@@
static int disable_events(char *session_name)
enabled = 1;
} else {
MSG("%s %s of type %s disabled in channel %s for session %s",
enabled = 1;
} else {
MSG("%s %s of type %s disabled in channel %s for session %s",
-
get_domain
_str(dom.type),
+
lttng_domain_type
_str(dom.type),
event_name,
print_event_type(opt_event_type),
print_channel_name(channel_name),
event_name,
print_event_type(opt_event_type),
print_channel_name(channel_name),
@@
-368,7
+369,9
@@
int cmd_disable_events(int argc, const char **argv)
}
ret = print_missing_or_multiple_domains(
}
ret = print_missing_or_multiple_domains(
- opt_kernel + opt_userspace + opt_jul + opt_log4j + opt_python);
+ opt_kernel + opt_userspace + opt_jul + opt_log4j +
+ opt_python,
+ true);
if (ret) {
ret = CMD_ERROR;
goto end;
if (ret) {
ret = CMD_ERROR;
goto end;
This page took
0.031437 seconds
and
4
git commands to generate.