Mesa (7.8): egl: dri2 driver error output

Brian Paul brianp at kemper.freedesktop.org
Wed Apr 28 13:26:42 UTC 2010


Module: Mesa
Branch: 7.8
Commit: 9cfaaa291f9c69cfc24e8a9c0d7de47319e479ed
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9cfaaa291f9c69cfc24e8a9c0d7de47319e479ed

Author: Micah Fedke <M.Fedke at Astronautics.com>
Date:   Wed Apr 28 07:25:58 2010 -0600

egl: dri2 driver error output

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 at vmware.com>

---

 src/egl/drivers/dri2/egl_dri2.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 15b3529..2dfb70d 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -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;
    }
 




More information about the mesa-commit mailing list