From: Arnaldo Carvalho de Melo Date: Thu, 27 May 2010 12:53:40 +0000 (-0300) Subject: perf tui: Fix last use_browser problem related to .perfconfig X-Git-Tag: v2.6.35-rc1~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4fe52a8ee730ed340eba8fe6ccbf26347ebe9aa;p=pandora-kernel.git perf tui: Fix last use_browser problem related to .perfconfig When we moved to using ~/.perfconfig to set the value of use_browser, it changed from a boolean to an int so that the convention used for use_pager was followed. That convention is: -1: unspecified, that is what use_{browser,pager} is initialized 0: Don't use the browser (should be TUI), because was explicitely set to 0/off/false on ~/.perfconfig [tui] cmd =, or because we're redirecting the stdout to a file or piping it to some other command (!isatty()). 1: Use the TUI Some code was not properly audited and continued testing it as a boolean, this seems to be the last one. Reported-by: Frédéric Weisbecker Tested-by: Frédéric Weisbecker Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed