Fix: error handling in lttng enable-event
authorDavid Goulet <dgoulet@efficios.com>
Tue, 20 Mar 2012 19:32:43 +0000 (15:32 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 20 Mar 2012 19:32:43 +0000 (15:32 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/enable_events.c

index 3e3f050d15086a1a67f57010da4e5b91d4d1030f..5dda8bf8c64ceaa3895c48b7dbbe3dd323d0e876 100644 (file)
@@ -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) {
This page took 0.026294 seconds and 4 git commands to generate.