summaryrefslogtreecommitdiff
path: root/lib/igt_debugfs.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-10-09 23:53:15 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2013-10-15 19:32:09 +0100
commitd4e7ddf15d69fdb17d25446edcd6c73a684b759b (patch)
treedde534bd7a320a47f2fea33f851541934721a580 /lib/igt_debugfs.c
parent952d4b0a9c835d1d2e4e2c1b8727d225c805c8c6 (diff)
lib: Make igt_debugfs_open() take the mode as argument
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib/igt_debugfs.c')
-rw-r--r--lib/igt_debugfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index f1944398..7e625e15 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -66,12 +66,12 @@ find_minor:
return ENOENT;
}
-int igt_debugfs_open(igt_debugfs_t *debugfs, const char *filename)
+int igt_debugfs_open(igt_debugfs_t *debugfs, const char *filename, int mode)
{
char buf[1024];
sprintf(buf, "%s/%s", debugfs->dri_path, filename);
- return open(buf, O_RDONLY);
+ return open(buf, mode);
}
FILE *igt_debugfs_fopen(igt_debugfs_t *debugfs, const char *filename,