#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <assert.h>
#include <urcu/list.h>
+#include <lttng/domain-internal.h>
#include <common/mi-lttng.h>
#include "../command.h"
} else if (opt_log4j) {
return LTTNG_DOMAIN_LOG4J;
} else {
- assert(0);
+ abort();
}
}
} 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",
- get_domain_str(dom.type), type->opt->symbol);
+ lttng_domain_type_str(dom.type),
+ type->opt->symbol);
}
success = 1;
}