Mesa (mesa_7_5_branch): i965: send all warnings through _mesa_warning()
Ian Romanick
idr at kemper.freedesktop.org
Wed Jun 17 20:32:40 UTC 2009
Module: Mesa
Branch: mesa_7_5_branch
Commit: 56235ae5049bee929c83f6932db077afaa5930f8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=56235ae5049bee929c83f6932db077afaa5930f8
Author: Robert Ellison <papillo at vmware.com>
Date: Wed May 13 20:38:33 2009 -0600
i965: send all warnings through _mesa_warning()
One warning message:
drm_i915_getparam: -22
was still being sent to fprintf(). This causes all Piglit tests to fail,
even with MESA_DEBUG=0.
Using _mesa_warning() to emit the message allows the general Mesa controls
for messages like this to be applied.
(cherry picked from commit bc3270e99f5c39544aaf831742db14796ab83a6a)
---
src/mesa/drivers/dri/intel/intel_screen.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index 50cb13a..0b48563 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -236,7 +236,7 @@ intel_get_param(__DRIscreenPrivate *psp, int param, int *value)
ret = drmCommandWriteRead(psp->fd, DRM_I915_GETPARAM, &gp, sizeof(gp));
if (ret) {
- fprintf(stderr, "drm_i915_getparam: %d\n", ret);
+ _mesa_warning(NULL, "drm_i915_getparam: %d\n", ret);
return GL_FALSE;
}
More information about the mesa-commit
mailing list