diff options
author | Brian Paul <[email protected]> | 2017-12-08 09:31:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-12-12 09:44:59 -0700 |
commit | 7a46063803c51e74e635a7d6e056b6442b8f2c5a (patch) | |
tree | bbe6c6c96be018991219116b54ce18f67a2321cf /src/mesa | |
parent | 63b03dc924adf91ecb5da757edafa975878d7047 (diff) |
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]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |