From: Jérémie Galarneau Date: Thu, 25 May 2017 09:17:14 +0000 (-0400) Subject: Fix: return LTTNG_ERR_INVALID_TRIGGER on validation failure X-Git-Tag: v2.10.0-rc2~44 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0bf690bb0b65ad846d30ccb0507ef2ea6acc44b9;p=lttng-tools.git Fix: return LTTNG_ERR_INVALID_TRIGGER on validation failure Signed-off-by: Jérémie Galarneau --- diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c index 6bd3f80ec..a8c6c9b24 100644 --- a/src/lib/lttng-ctl/lttng-ctl.c +++ b/src/lib/lttng-ctl/lttng-ctl.c @@ -2607,7 +2607,7 @@ int lttng_register_trigger(struct lttng_trigger *trigger) } if (!lttng_trigger_validate(trigger)) { - ret = -LTTNG_ERR_INVALID; + ret = -LTTNG_ERR_INVALID_TRIGGER; goto end; }