diff options
author | Namhyung Kim <namhyung@gmail.com> | 2012-05-29 13:22:57 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-29 11:53:42 -0300 |
commit | 3780f4883b2f3319afe88bf3ddc73ef426851d49 (patch) | |
tree | 240a22d02b4ba502e5e68c1a6526db6338acc782 /tools/perf/builtin-annotate.c | |
parent | 21f0d423b989284f82004d0f80c75581fec91fb2 (diff) | |
download | op-kernel-dev-3780f4883b2f3319afe88bf3ddc73ef426851d49.zip op-kernel-dev-3780f4883b2f3319afe88bf3ddc73ef426851d49.tar.gz |
perf tools: Convert critical messages to ui__error()
There were places where use ui__warning (or even fprintf) to show
critical messages. This patch converts them to ui__error so that the
front-end code can implement appropriate behavior.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1338265382-6872-3-git-send-email-namhyung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r-- | tools/perf/builtin-annotate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 806e0a2..67522cf 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c @@ -215,7 +215,7 @@ static int __cmd_annotate(struct perf_annotate *ann) } if (total_nr_samples == 0) { - ui__warning("The %s file has no samples!\n", session->filename); + ui__error("The %s file has no samples!\n", session->filename); goto out_delete; } out_delete: |