From: David Goulet Date: Tue, 18 Dec 2012 20:18:27 +0000 (-0500) Subject: Fix: don't print usage when listing fails X-Git-Tag: v2.1.0~28 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6191db77fd286967df592b572f4e232d586c7e1f;p=lttng-tools.git Fix: don't print usage when listing fails Fixes #414 Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c index 48b2c8276..a6ea6b8c9 100644 --- a/src/bin/lttng/commands/list.c +++ b/src/bin/lttng/commands/list.c @@ -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; } }