From ec188088b77f0ac753ca592f9c1cf46f219ec7dd Mon Sep 17 00:00:00 2001 From: David Goulet Date: Sun, 17 Jul 2011 13:10:44 -0400 Subject: [PATCH] Add error message if event not found Signed-off-by: David Goulet --- lttng/commands/enable_events.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.34.1