]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
perf_counter tools: Dont output in color on !tty
authorIngo Molnar <mingo@elte.hu>
Thu, 4 Jun 2009 13:40:25 +0000 (15:40 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 4 Jun 2009 13:40:25 +0000 (15:40 +0200)
commit13d0ab5ec29852a6925f612830fa9e822669ece6
tree614ac0463dd3648bc8079e2ea795752af9cb1272
parent8fc0321f1ad0ffef969056dda91b453bbd7a494d
perf_counter tools: Dont output in color on !tty

Dont emit ASCII color characters if the terminal is not a tty,
such as when perf report gets redirected into a file.

Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/util/color.c