From: David Goulet Date: Fri, 21 Sep 2012 16:59:10 +0000 (-0400) Subject: Fix: Wrong returned error code on UST enable event X-Git-Tag: v2.1.0-rc4~21 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=95a8266405f61b6927f8cef13b1fdfa0b5584274 Fix: Wrong returned error code on UST enable event 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 --- diff --git a/src/bin/lttng-sessiond/event.c b/src/bin/lttng-sessiond/event.c index ee3ebfe3b..2173e414a 100644 --- a/src/bin/lttng-sessiond/event.c +++ b/src/bin/lttng-sessiond/event.c @@ -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 */