[Mesa-dev] [PATCH] xlib: call _mesa_warning() instead of fprintf()
Brian Paul
brianp at vmware.com
Fri Dec 8 16:33:22 UTC 2017
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;
}
}
--
1.9.1
More information about the mesa-dev
mailing list