diff options
Diffstat (limited to 'lib/igt_debugfs.c')
-rw-r--r-- | lib/igt_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index c603369e..2c3b1cfe 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -228,7 +228,7 @@ bool igt_debugfs_search(const char *filename, const char *substring) char *line = NULL; bool matched = false; - file = igt_debugfs_fopen(filename, O_RDONLY); + file = igt_debugfs_fopen(filename, "r"); igt_assert(file); while (getline(&line, &n, file) >= 0) { |