egl: dri2 driver error output
authorMicah Fedke <M.Fedke@Astronautics.com>
Wed, 28 Apr 2010 13:25:58 +0000 (07:25 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Apr 2010 13:26:01 +0000 (07:26 -0600)
This patch amends the error output string for the case where the
dri2 egl driver could not open the dri dev node.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/egl/drivers/dri2/egl_dri2.c

index 15b3529cd296d79aa76ab4ea95c5a03f85fd576d..2dfb70de00024833f577144a011e0ac6b8e61b92 100644 (file)
@@ -706,7 +706,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;
    }