summaryrefslogtreecommitdiff
path: root/src/glx/dri2_glx.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2019-09-27 12:16:22 -0400
committerAdam Jackson <ajax@nwnk.net>2019-09-30 15:30:16 +0000
commit855dc17fcfc3aaf3a1324b54c7fb4e0c246b4987 (patch)
treea68bd85d6e620aaad47144db86b4be9401474472 /src/glx/dri2_glx.c
parenteebe091d292609de8aaf5b5c537d867b23908947 (diff)
glx: Log the filename of the drm device if we fail to open it
Helps point the user to the specific device that's having issues, since you're increasingly likely to have more than one. Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/107 Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/glx/dri2_glx.c')
-rw-r--r--src/glx/dri2_glx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c
index bed25bb38d6..d2a9c881357 100644
--- a/src/glx/dri2_glx.c
+++ b/src/glx/dri2_glx.c
@@ -1244,7 +1244,7 @@ dri2CreateScreen(int screen, struct glx_display * priv)
psc->fd = loader_open_device(deviceName);
if (psc->fd < 0) {
- ErrorMessageF("failed to open drm device: %s\n", strerror(errno));
+ ErrorMessageF("failed to open %s: %s\n", deviceName, strerror(errno));
goto handle_error;
}