summaryrefslogtreecommitdiffstats
path: root/src/loader
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-01-30 10:44:58 -0800
committerEric Anholt <[email protected]>2014-02-01 10:09:11 -0800
commitc849ecc19a4cb2951a8b9e8d257632f492ab2517 (patch)
tree259fe759282e6b194039e237327da45e5ec5c2a8 /src/loader
parent63546b8e3d217d81a67f6f291fab48b3f381a9ca (diff)
dri: Add a useful error message if someone's packages missed libudev deps.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/loader')
-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 5d258994308..811f8a25713 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");
+ }
}
}