<div dir="ltr">Looks good to me. Matches what ErrorMessageF is doing.<div><br></div><div>Reviewed-by: Courtney Goeltzenleuchter <<a href="mailto:courtney@lunarg.com">courtney@lunarg.com</a>></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 26, 2014 at 2:47 PM, Johannes Obermayr <span dir="ltr"><<a href="mailto:johannesobermayr@gmx.de" target="_blank">johannesobermayr@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Stefan Dirsch <<a href="mailto:sndirsch@suse.de">sndirsch@suse.de</a>><br>
<br>
Let's handle LIBGL_DEBUG env. variable in Mesa in a consistent way.<br>
<br>
Fixes: <a href="https://bugzilla.novell.com/show_bug.cgi?id=892896" target="_blank">https://bugzilla.novell.com/show_bug.cgi?id=892896</a><br>
---<br>
To: <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
Cc: "10.3" <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>><br>
openSUSE maintainers: Why can't you forward your applied u_* patches to upstream<br>
                      to get them included in final/next release?<br>
---<br>
 src/mesa/drivers/dri/common/xmlconfig.c | 4 +++-<br>
 1 file changed, 3 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c<br>
index ce37647..8e48522 100644<br>
--- a/src/mesa/drivers/dri/common/xmlconfig.c<br>
+++ b/src/mesa/drivers/dri/common/xmlconfig.c<br>
@@ -429,8 +429,10 @@ static void<br>
 __driUtilMessage(const char *f, ...)<br>
 {<br>
     va_list args;<br>
+    const char *libgl_debug;<br>
<br>
-    if (getenv("LIBGL_DEBUG")) {<br>
+    libgl_debug=getenv("LIBGL_DEBUG");<br>
+    if (libgl_debug && !strstr(libgl_debug, "quiet")) {<br>
         fprintf(stderr, "libGL: ");<br>
         va_start(args, f);<br>
         vfprintf(stderr, f, args);<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.0.4<br>
<br>
_______________________________________________<br>
mesa-stable mailing list<br>
<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-stable" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-stable</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Courtney Goeltzenleuchter<br><div>LunarG</div><div><img src="http://media.lunarg.com/wp-content/themes/LunarG/images/logo.png" width="96" height="65"><br></div></div>
</div>