intel: Use _mesa_warning() to report GEM warnings
authorBrian Paul <brianp@vmware.com>
Mon, 27 Jul 2009 20:35:18 +0000 (14:35 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 27 Jul 2009 20:35:18 +0000 (14:35 -0600)
src/mesa/drivers/dri/intel/intel_screen.c

index 0f278b3acddf8daa26d6252fdff6eca1e9560a12..2c6e2640b08f6a09b6a92888f7c65de1c366bd43 100644 (file)
@@ -617,10 +617,10 @@ intel_init_bufmgr(intelScreenPrivate *intelScreen)
    /* Otherwise, use the classic buffer manager. */
    if (intelScreen->bufmgr == NULL) {
       if (gem_disable) {
-        fprintf(stderr, "GEM disabled.  Using classic.\n");
+        _mesa_warning(NULL, "GEM disabled.  Using classic.");
       } else {
-        fprintf(stderr, "Failed to initialize GEM.  "
-                "Falling back to classic.\n");
+        _mesa_warning(NULL,
+                       "Failed to initialize GEM.  Falling back to classic.");
       }
 
       if (intelScreen->tex.size == 0) {