From 292ae4538a922f93eec1958b6073e83baab4e1c7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 10 Dec 2010 15:31:59 +0000 Subject: error-decode: stdin is 0 not 1 Signed-off-by: Chris Wilson --- tools/intel_error_decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/intel_error_decode.c') diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c index e21b8391..f85b8651 100644 --- a/tools/intel_error_decode.c +++ b/tools/intel_error_decode.c @@ -327,7 +327,7 @@ main (int argc, char *argv[]) } if (argc == 1) { - if (isatty(1)) { + if (isatty(0)) { path = "/debug/dri/0"; err = stat (path, &st); if (err != 0) { -- cgit v1.2.3