From: David Goulet Date: Tue, 20 Mar 2012 19:32:43 +0000 (-0400) Subject: Fix: error handling in lttng enable-event X-Git-Tag: v2.0.0-rc4~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6d805133e0b27aae4ed23ddbf84cb2d70381e202;p=lttng-tools.git Fix: error handling in lttng enable-event Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/enable_events.c b/src/bin/lttng/commands/enable_events.c index 3e3f050d1..5dda8bf8c 100644 --- a/src/bin/lttng/commands/enable_events.c +++ b/src/bin/lttng/commands/enable_events.c @@ -350,12 +350,13 @@ static int enable_events(char *session_name) case LTTCOMM_KERN_EVENT_EXIST: WARN("Kernel events already enabled (channel %s, session %s)", channel_name, session_name); - goto end; + break; default: ERR("Events: %s (channel %s, session %s)", lttng_strerror(ret), channel_name, session_name); break; } + goto end; } switch (opt_event_type) {