summaryrefslogtreecommitdiff
path: root/src/loader/loader.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2014-01-30 10:44:58 -0800
committerEric Anholt <eric@anholt.net>2014-02-01 10:09:11 -0800
commitc849ecc19a4cb2951a8b9e8d257632f492ab2517 (patch)
tree259fe759282e6b194039e237327da45e5ec5c2a8 /src/loader/loader.c
parent63546b8e3d217d81a67f6f291fab48b3f381a9ca (diff)
dri: Add a useful error message if someone's packages missed libudev deps.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/loader/loader.c')
-rw-r--r--src/loader/loader.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/loader/loader.c b/src/loader/loader.c
index 5d25899430..811f8a2571 100644
--- a/src/loader/loader.c
+++ b/src/loader/loader.c
@@ -111,6 +111,11 @@ udev_dlopen_handle(void)
* might be ia64.
*/
udev_handle = dlopen("libudev.so.0", RTLD_LOCAL | RTLD_LAZY);
+
+ if (!udev_handle) {
+ log_(_LOADER_FATAL, "Couldn't dlopen libudev.so.1 or libudev.so.0, "
+ "driver detection may be broken.\n");
+ }
}
}