From: Brian Paul Date: Fri, 8 Dec 2017 16:31:08 +0000 (-0700) Subject: xlib: call _mesa_warning() instead of fprintf() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a46063803c51e74e635a7d6e056b6442b8f2c5a;p=mesa.git xlib: call _mesa_warning() instead of fprintf() We use _mesa_warning() everywhere else in this code. Change requested by Rick Irons of Mathworks. CC: Reviewed-by: Ian Romanick --- diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 22d878eb80d..42c48264bab 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; } }