From f6bbff77252cf12c82d480eaf6d9189129d1040a Mon Sep 17 00:00:00 2001 From: Masami Hiramatsu Date: Tue, 15 Dec 2009 10:31:42 -0500 Subject: [PATCH] perf probe: Fix --del to show info instead of warning Fix --del option to show info message instead of warning if failing to find specified event. Signed-off-by: Masami Hiramatsu Cc: Paul Mackerras Cc: Arnaldo Carvalho de Melo Cc: Steven Rostedt Cc: Jim Keniston Cc: Ananth N Mavinakayanahalli Cc: Christoph Hellwig Cc: Frank Ch. Eigler Cc: Jason Baron Cc: K.Prasad Cc: Peter Zijlstra Cc: Srikar Dronamraju Cc: systemtap Cc: DLE Cc: Frederic Weisbecker LKML-Reference: <20091215153142.17436.7793.stgit@dhcp-100-2-132.bos.redhat.com> Signed-off-by: Ingo Molnar --- tools/perf/util/probe-event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 1653a62a478e..1eacee6eca4b 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c @@ -544,7 +544,7 @@ static void del_trace_kprobe_event(int fd, const char *group, if (e_snprintf(buf, 128, "%s:%s", group, event) < 0) die("Failed to copy event."); if (!strlist__has_entry(namelist, buf)) { - pr_warning("Warning: event \"%s\" is not found.\n", buf); + pr_info("Info: event \"%s\" does not exist, could not remove it.\n", buf); return; } /* Convert from perf-probe event to trace-kprobe event */ -- 2.30.2