[Mesa-dev] [RFC PATCH] egl: dri2 driver error output

Brian Paul brianp at vmware.com
Wed Apr 28 06:27:04 PDT 2010


Micah Fedke wrote:
> 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;
>     }
>  

Hi Micah.  Thanks for the patch.  I've committed it to the 7.8 branch.

-Brian



More information about the mesa-dev mailing list