const char *active_string(int value)
{
switch (value) {
- case 0: return " [active]";
- case 1: return " [inactive]";
+ case 0: return " [inactive]";
+ case 1: return " [active]";
case -1: return "";
default: return NULL;
}
const char *enabled_string(int value)
{
switch (value) {
- case 0: return " [enabled]";
- case 1: return " [disabled]";
+ case 0: return " [disabled]";
+ case 1: return " [enabled]";
case -1: return "";
default: return NULL;
}
MSG("\n%sEvents:", indent4);
if (count == 0) {
- MSG("%sNone", indent6);
+ MSG("%sNone\n", indent6);
goto end;
}
unsigned int chan_found = 0;
struct lttng_channel *channels = NULL;
- DBG("Listing channel(s) (%s)", channel_name);
+ DBG("Listing channel(s) (%s)", channel_name ? : "<all>");
count = lttng_list_channels(handle, &channels);
if (count < 0) {
int cmd_list(int argc, const char **argv)
{
int opt, i, ret = CMD_SUCCESS;
- unsigned int nb_domain;
+ int nb_domain;
const char *session_name;
static poptContext pc;
struct lttng_domain domain;