#include <assert.h>
#include <common/mi-lttng.h>
+#include <lttng/domain-internal.h>
#include "../command.h"
* 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(const char *event_name, int enabled, int success)
{
int ret;
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));
}
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),
}
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;