projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3912e3
)
i965: send all warnings through _mesa_warning()
author
Robert Ellison
<papillo@vmware.com>
Thu, 14 May 2009 02:38:33 +0000
(20:38 -0600)
committer
Robert Ellison
<papillo@vmware.com>
Thu, 14 May 2009 16:36:33 +0000
(10:36 -0600)
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.
src/mesa/drivers/dri/intel/intel_screen.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_screen.c
b/src/mesa/drivers/dri/intel/intel_screen.c
index 65e62947ef6abe1eaf8f93348b30a670e9c639c2..27288231426fbccc438375cc34990e6cb88af7c6 100644
(file)
--- 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;
}