From: Arnaldo Carvalho de Melo Date: Wed, 31 Mar 2010 14:33:40 +0000 (-0300) Subject: perf hist: Replace ->print() routines by ->snprintf() equivalents X-Git-Tag: v2.6.35-rc1~522^2~127^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4e3b956a820162b7c1d616117b4f23b6017f504;p=pandora-kernel.git perf hist: Replace ->print() routines by ->snprintf() equivalents Then hist_entry__fprintf will just us the newly introduced hist_entry__snprintf, add the newline and fprintf it to the supplied FILE descriptor. This allows us to remove the use_browser checking in the color_printf routines, that now got color_snprintf variants too. The newt TUI browser (and other GUIs that may come in the future) don't have to worry about stdio specific stuff in the strings they get from the se->snprintf routines and instead use whatever means to do the equivalent. Also the newt TUI browser don't have to use the fmemopen() hack, instead it can use the se->snprintf routines directly. For now tho use the hist_entry__snprintf routine to reduce the patch size. Cc: Frédéric Weisbecker Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed