[Mesa-dev] [RFC PATCH] egl: dri2 driver error output
Micah Fedke
M.Fedke at Astronautics.com
Tue Apr 27 08:11:45 PDT 2010
This patch amends the error output string for the case where the dri2 egl driver could not open the dri dev node.
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 8b6f78c..00550c2 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -708,7 +708,7 @@ 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;
}
--
Micah Fedke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100427/d5f7ecc8/attachment.html>
More information about the mesa-dev
mailing list