From: Ville Syrjälä Date: Wed, 11 Jun 2014 16:20:19 +0000 (+0300) Subject: lib/igt_debugfs: Don't fail if debugfs is already mounted X-Git-Tag: intel-gpu-tools-1.8~276 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aba3582bb402b5cb5e48d81c5e32231fa42634d7;p=platform%2Fupstream%2Fintel-gpu-tools.git lib/igt_debugfs: Don't fail if debugfs is already mounted Remove the igt_assert() from the debugfs mount. It will fail if debugfs is already mounted. With the assert in place it's very annying to use igt without i915 loaded (eg. to dump BIOS configured registers). Signed-off-by: Ville Syrjälä --- diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index f21f671..809d447 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -102,7 +102,7 @@ static bool __igt_debugfs_init(igt_debugfs_t *debugfs) igt_assert(stat("/sys/kernel/debug", &st) == 0); - igt_assert(mount("debug", "/sys/kernel/debug", "debugfs", 0, 0) == 0); + mount("debug", "/sys/kernel/debug", "debugfs", 0, 0); find_minor: strcpy(debugfs->root, path);