summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.c
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-09-25 09:36:34 +0100
committerThomas Wood <thomas.wood@intel.com>2015-09-25 09:42:42 +0100
commit93f1250013c6c2533f840820a62a717aa33dbd88 (patch)
treea654d98250f242ba4c71dc147141f05740d8be97 /lib/igt_debugfs.c
parent6c89204da77a721c9f6c2c77908ca9502a246df8 (diff)
lib: fix fopen mode in igt_debugfs_search
Reported-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/igt_debugfs.c')
-rw-r--r--lib/igt_debugfs.c2
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) {