Merge branch '7.8'
[mesa.git] / src / egl / drivers / dri2 / egl_dri2.c
index 8b6f78cdc9f70e9d6d3951aceb21855b44e25227..4be39627302566baca9ecd0eb1c3d6ff34fa7fb2 100644 (file)
@@ -708,7 +708,8 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp,
    dri2_dpy->fd = open(dri2_dpy->device_name, O_RDWR);
    if (dri2_dpy->fd == -1) {
       _eglLog(_EGL_FATAL,
-             "DRI2: could not open %s (%s)", path, strerror(errno));
+             "DRI2: could not open %s (%s)", dri2_dpy->device_name,
+              strerror(errno));
       goto cleanup_driver;
    }