From 7a46063803c51e74e635a7d6e056b6442b8f2c5a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 8 Dec 2017 09:31:08 -0700 Subject: [PATCH] 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 --- 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 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; } } -- 2.30.2