xlib: call _mesa_warning() instead of fprintf()
authorBrian Paul <brianp@vmware.com>
Fri, 8 Dec 2017 16:31:08 +0000 (09:31 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Dec 2017 16:44:59 +0000 (09:44 -0700)
We use _mesa_warning() everywhere else in this code.  Change requested
by Rick Irons of Mathworks.

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/x11/fakeglx.c

index 22d878eb80d2c0f4c475b6163715a3a559a3f07d..42c48264bab58dc8544266096e2c5801500873cb 100644 (file)
@@ -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;
       }
    }