Fix: don't print usage when listing fails
authorDavid Goulet <dgoulet@efficios.com>
Tue, 18 Dec 2012 20:18:27 +0000 (15:18 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 18 Dec 2012 20:18:28 +0000 (15:18 -0500)
Fixes #414

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/list.c

index 48b2c82763e3bb69a40987e9f42f41e765355037..a6ea6b8c9c6c153375bac25c7b390466b830d01d 100644 (file)
@@ -744,6 +744,7 @@ int cmd_list(int argc, const char **argv)
                if (opt_kernel) {
                        ret = list_kernel_events();
                        if (ret < 0) {
+                               ret = CMD_ERROR;
                                goto end;
                        }
                }
@@ -754,6 +755,7 @@ int cmd_list(int argc, const char **argv)
                                ret = list_ust_events();
                        }
                        if (ret < 0) {
+                               ret = CMD_ERROR;
                                goto end;
                        }
                }
This page took 0.025255 seconds and 4 git commands to generate.