Browse Source

perf ui: Make --stdio default when TUI is not supported

The commit dc41b9b8f02db ("perf ui: Change fallback policy of
setup_browser") changed default behavior of the function but missed
setting the use_browser variable to 0 accidently. So perf report ends up
doing nothing in such cases. Fix it.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1338216802-5675-1-git-send-email-namhyung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Namhyung Kim 13 years ago
parent
commit
21f0d423b9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tools/perf/ui/setup.c

+ 1 - 0
tools/perf/ui/setup.c

@@ -22,6 +22,7 @@ void setup_browser(bool fallback_to_pager)
 			break;
 			break;
 		/* fall through */
 		/* fall through */
 	default:
 	default:
+		use_browser = 0;
 		if (fallback_to_pager)
 		if (fallback_to_pager)
 			setup_pager();
 			setup_pager();
 		break;
 		break;