It would be nice if all textual debug output enabled with environment variables such as LIBGL_VERBOSE, MESA_DEBUG, INTEL_DEBUG and so on would be printed strictly to stderr. Right now some code in mesa/src uses stderr, but even more code uses stdout. Dear maintainers, please speak up if open-coding the debug output channel everywhere (with "fprintf(stderr, ...)") would not be acceptable, and please recommend a preferred approach (something like introducing a new mesa_dump function or macro to be used everywhere? what about gallium?).
It seems like most of the messages should use one of _mesa_problem, _mesa_error, or _mesa_warning. We may even want an additional _mesa_info. The advantage of using these (instead of printf directly) is they also route through ARB_debug_output. printf and fprintf appear ~1500 times in the code base. Going through and changing all of them (and reviewing all the patches that result), doesn't seem like a good use of anyone's time. :(
Closing as wont fix as per the last line of comment 1.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.