Fix nb_domain signedness in list command
[lttng-tools.git] / lttng / commands / list.c
index bac17b8970b9c88379f47b81fc977ed1ec461602..66f365e0162c95929d7c6cb7a684200225b2c55c 100644 (file)
@@ -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.023649 seconds and 4 git commands to generate.