diff options
author | Eric Anholt <[email protected]> | 2014-06-20 14:10:29 +0100 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-07-30 22:31:30 -0700 |
commit | 1da4bb5b97a4b9458fad6f5e7dd4ec29f522f934 (patch) | |
tree | aeaea2b4357b91b07582b4d0704cf9302da0296e /src/gbm/backends | |
parent | ef81ce9909c745c46e7a18fa109f14fa5dfce786 (diff) |
gbm: Log at least one dlerror() when we fail to open any drivers.
We don't want to log every single error (such as all the ones where the file
wasn't even present in our list of search paths), but if you didn't find any
driver, then seeing at least one error is useful (since the common case as a
developer is a single DEFAULT_DRIVER_DIR or GBM_DRIVERS_PATH entry).
v2: Rebase on swrast changes.
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gbm/backends')
-rw-r--r-- | src/gbm/backends/dri/gbm_dri.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 0fbe81cf2a1..f637e323db9 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -338,6 +338,7 @@ dri_open_driver(struct gbm_dri_device *dri) if (dri->driver == NULL) { fprintf(stderr, "gbm: failed to open any driver (search paths %s)\n", search_paths); + fprintf(stderr, "gbm: Last dlopen error: %s\n", dlerror()); return NULL; } |