[Mesa-stable] [PATCH] xlib: call _mesa_warning() instead of fprintf()

Ian Romanick idr at freedesktop.org
Mon Dec 11 17:44:07 UTC 2017


Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 12/11/2017 09:42 AM, Brian Paul wrote:
> We use _mesa_warning() everywhere else in this code.  Change requested
> by Rick Irons of Mathworks.
> 
> CC: <mesa-stable at lists.freedesktop.org>
> ---
>  src/mesa/drivers/x11/fakeglx.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
> index 22d878e..42c4826 100644
> --- a/src/mesa/drivers/x11/fakeglx.c
> +++ b/src/mesa/drivers/x11/fakeglx.c
> @@ -2804,7 +2804,8 @@ Fake_glXCreateContextAttribs(Display *dpy, GLXFBConfig config,
>           profileFlags = attrib_list[i + 1];
>           break;
>        default:
> -         fprintf(stderr, "Bad attribute in glXCreateContextAttribs()\n");
> +         _mesa_warning(NULL, "Unexpected attribute 0x%x in "
> +                       "glXCreateContextAttribs()\n", attrib_list[i]);
>           return 0;
>        }
>     }
> 



More information about the mesa-stable mailing list