Module: Mesa Branch: 17.2 Commit: 9f94d6aa651446389bdac1c8101878b2cf4a5e51 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f94d6aa651446389bdac1c8101878b2cf4a5e51
Author: Brian Paul <[email protected]> Date: Fri Dec 8 09:31:08 2017 -0700 xlib: call _mesa_warning() instead of fprintf() We use _mesa_warning() everywhere else in this code. Change requested by Rick Irons of Mathworks. CC: <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit 7a46063803c51e74e635a7d6e056b6442b8f2c5a) --- 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 d2a099f9a2..6da3fa42d0 100644 --- a/src/mesa/drivers/x11/fakeglx.c +++ b/src/mesa/drivers/x11/fakeglx.c @@ -2836,7 +2836,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; } } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
