diff options
author | Eric Anholt <[email protected]> | 2014-01-30 10:44:58 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-02-01 10:09:11 -0800 |
commit | c849ecc19a4cb2951a8b9e8d257632f492ab2517 (patch) | |
tree | 259fe759282e6b194039e237327da45e5ec5c2a8 | |
parent | 63546b8e3d217d81a67f6f291fab48b3f381a9ca (diff) |
dri: Add a useful error message if someone's packages missed libudev deps.
Reviewed-by: Matt Turner <[email protected]>
-rw-r--r-- | src/loader/loader.c | 5 |
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"); + } } } |