Fix: Wrong returned error code on UST enable event
authorDavid Goulet <dgoulet@efficios.com>
Fri, 21 Sep 2012 16:59:10 +0000 (12:59 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 21 Sep 2012 16:59:10 +0000 (12:59 -0400)
Instead of sending back a FATAL error, correctly notify the user of a
failed UST enable event.

The bug261 was not reproducible anymore but led to this fix.

(Closes 261)

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

index ee3ebfe3bce81f0aa5d79b05a43e566f6e3a38a0..2173e414a0a015545478a671e3cd930f02b0bf83 100644 (file)
@@ -414,7 +414,7 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, int domain,
        if (uevent == NULL) {
                uevent = trace_ust_create_event(event);
                if (uevent == NULL) {
-                       ret = LTTNG_ERR_FATAL;
+                       ret = LTTNG_ERR_UST_ENABLE_FAIL;
                        goto error;
                }
                /* Valid to set it after the goto error since uevent is still NULL */
This page took 0.026257 seconds and 4 git commands to generate.