diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-03-22 12:10:25 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-03-22 13:47:34 -0400 |
commit | f3a1f0ea9432ec395cd112f42201e8e523c07bc5 (patch) | |
tree | dcf78714e7531f35c008de90de55e11c512310ef /tools/perf/util/cache.h | |
parent | 301fde27c7fcd0380b02b175d547e894ff65d78a (diff) |
perf newt: Properly restore the screen when error exiting
Show an OK message box with the last message sent via pr_err,
etc.
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1269274229-20442-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/cache.h')
-rw-r--r-- | tools/perf/util/cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/cache.h b/tools/perf/util/cache.h index 47b12a3d11bf..4b9aab7f0405 100644 --- a/tools/perf/util/cache.h +++ b/tools/perf/util/cache.h | |||
@@ -77,10 +77,10 @@ static inline void setup_browser(void) | |||
77 | { | 77 | { |
78 | setup_pager(); | 78 | setup_pager(); |
79 | } | 79 | } |
80 | static inline void exit_browser(void) {} | 80 | static inline void exit_browser(bool wait_for_ok __used) {} |
81 | #else | 81 | #else |
82 | void setup_browser(void); | 82 | void setup_browser(void); |
83 | void exit_browser(void); | 83 | void exit_browser(bool wait_for_ok); |
84 | #endif | 84 | #endif |
85 | 85 | ||
86 | extern const char *editor_program; | 86 | extern const char *editor_program; |