Add new API call lttng_channel_set_default_attr
[lttng-tools.git] / lttng / commands / list.c
index a3d8868b52c6539117c7b5f8f8b07173d5cc18d0..abbdea1ba8bb904c86508c3ef965100073dd225c 100644 (file)
@@ -113,8 +113,8 @@ static
 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;
        }
@@ -124,8 +124,8 @@ static
 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;
        }
@@ -279,7 +279,7 @@ static int list_events(const char *channel_name)
 
        MSG("\n%sEvents:", indent4);
        if (count == 0) {
-               MSG("%sNone", indent6);
+               MSG("%sNone\n", indent6);
                goto end;
        }
 
@@ -333,7 +333,7 @@ static int list_channels(const char *channel_name)
        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) {
@@ -482,7 +482,7 @@ error:
 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;
This page took 0.024084 seconds and 4 git commands to generate.