API change for lttng_list_domains prototype
[lttng-tools.git] / lttng / commands / list.c
index 8c1dadac8e5dc66bddebe81d7a564c9fc7c20555..6f37254e41c35ce6de41c1215483ecee9058a212 100644 (file)
@@ -165,7 +165,7 @@ static void print_events(struct lttng_event *event)
                        int ret;
 
                        ret = snprintf(ll_value, LTTNG_SYMBOL_NAME_LEN,
-                               ", %lld", (long long) event->loglevel_value);
+                               " (%lld)", (long long) event->loglevel_value);
                        if (ret < 0)
                                ERR("snprintf error");
                }
@@ -482,14 +482,14 @@ error:
 /*
  * List available domain(s) for a session.
  */
-static int list_domains(void)
+static int list_domains(const char *session_name)
 {
        int i, count, ret = CMD_SUCCESS;
        struct lttng_domain *domains = NULL;
 
        MSG("Domains:\n-------------");
 
-       count = lttng_list_domains(handle, &domains);
+       count = lttng_list_domains(session_name, &domains);
        if (count < 0) {
                ret = count;
                goto error;
@@ -601,7 +601,7 @@ int cmd_list(int argc, const char **argv)
 
                /* Domain listing */
                if (opt_domain) {
-                       ret = list_domains();
+                       ret = list_domains(session_name);
                        goto end;
                }
 
@@ -613,7 +613,7 @@ int cmd_list(int argc, const char **argv)
                        }
                } else {
                        /* We want all domain(s) */
-                       nb_domain = lttng_list_domains(handle, &domains);
+                       nb_domain = lttng_list_domains(session_name, &domains);
                        if (nb_domain < 0) {
                                ret = nb_domain;
                                goto end;
This page took 0.024026 seconds and 4 git commands to generate.