diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-20 19:37:24 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-06-20 19:38:10 +0100 |
commit | e4c24c048d8310955d984f24cec8e0dd5128e110 (patch) | |
tree | 1c1de1041144660b7acdab6a631fcf31ed18ed9e /lib/igt_debugfs.c | |
parent | 8deba38a3af34354680984186bdc80cfc6734138 (diff) |
lib/debugfs: Fix probe path for opening i915 debugfs dir
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_debugfs.c')
-rw-r--r-- | lib/igt_debugfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index 3cc22cbf..498e53dd 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -109,8 +109,7 @@ static bool __igt_debugfs_init(igt_debugfs_t *debugfs) strcpy(debugfs->root, __debugfs_mount()); for (n = 0; n < 16; n++) { - int len = sprintf(debugfs->dri_path, - "%s/dri/%d", debugfs->root, n); + int len = sprintf(debugfs->dri_path, "%s/%d", debugfs->root, n); sprintf(debugfs->dri_path + len, "/i915_error_state"); if (stat(debugfs->dri_path, &st) == 0) { debugfs->dri_path[len] = '\0'; |