Fix: return LTTNG_ERR_INVALID_TRIGGER on validation failure
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 25 May 2017 09:17:14 +0000 (05:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 13:19:12 +0000 (09:19 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/lttng-ctl.c

index 6bd3f80ec3f8f3a77941d30c67936b98c05efed3..a8c6c9b24adc33a3b13a14b2f206ffea5edc8230 100644 (file)
@@ -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;
        }
 
This page took 0.026108 seconds and 4 git commands to generate.