mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 17:06:14 +00:00
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>
This commit is contained in:
parent
6c89204da7
commit
93f1250013
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user