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) {