Fix: lttng: incorrect domain list printed when no domain is provided
[lttng-tools.git] / src / bin / lttng / commands / add_context.c
index 2c29a45ca3a4ce569140553480bf804020130876..82756599f2364ba4719ed8a615f06ba3aa0b3584 100644 (file)
@@ -541,7 +541,7 @@ int mi_open(void)
 
        ret = fileno(stdout);
        if (ret < 0) {
-               PERROR("Unable to retrive fileno of stdout");
+               PERROR("Unable to retrieve fileno of stdout");
                ret = CMD_ERROR;
                goto end;
        }
@@ -1115,8 +1115,8 @@ int cmd_add_context(int argc, const char **argv)
                goto end;
        }
 
-       ret = print_missing_or_multiple_domains(opt_kernel + opt_userspace +
-                       opt_jul + opt_log4j);
+       ret = print_missing_or_multiple_domains(
+                       opt_kernel + opt_userspace + opt_jul + opt_log4j, true);
        if (ret) {
                ret = CMD_ERROR;
                goto end;
This page took 0.023575 seconds and 4 git commands to generate.