From: David Goulet Date: Sun, 17 Jul 2011 17:10:44 +0000 (-0400) Subject: Add error message if event not found X-Git-Tag: v2.0-pre1~23 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ec188088b77f0ac753ca592f9c1cf46f219ec7dd;p=lttng-tools.git Add error message if event not found Signed-off-by: David Goulet --- diff --git a/lttng/commands/enable_events.c b/lttng/commands/enable_events.c index 718e4b3c3..ce8d60241 100644 --- a/lttng/commands/enable_events.c +++ b/lttng/commands/enable_events.c @@ -193,6 +193,9 @@ static int enable_events(void) switch (opt_event_type) { case LTTNG_EVENT_TRACEPOINTS: ret = lttng_kernel_enable_event(&ev, channel_name); + if (ret < 0) { + ERR("Unable to find event %s", ev.name); + } break; case LTTNG_EVENT_KPROBES: ret = parse_kprobe_opts(&ev, opt_kprobe);