Mesa (gallium-0.1): gallium: _debug_vprintf() should be silent if DEBUG is not defined

Brian Paul brianp at kemper.freedesktop.org
Sun Nov 9 16:46:01 UTC 2008


Module: Mesa
Branch: gallium-0.1
Commit: 7e8315701945ec807b2b5a9d01250b5ab74ae183
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e8315701945ec807b2b5a9d01250b5ab74ae183

Author: Brian <brian.paul at tungstengraphics.com>
Date:   Sat Nov  8 20:43:38 2008 -0700

gallium: _debug_vprintf() should be silent if DEBUG is not defined

---

 src/gallium/auxiliary/util/p_debug.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/auxiliary/util/p_debug.c b/src/gallium/auxiliary/util/p_debug.c
index b6cff28..6ff3e6e 100644
--- a/src/gallium/auxiliary/util/p_debug.c
+++ b/src/gallium/auxiliary/util/p_debug.c
@@ -101,8 +101,10 @@ void _debug_vprintf(const char *format, va_list ap)
 #elif defined(PIPE_SUBSYSTEM_WINDOWS_CE) || defined(PIPE_SUBSYSTEM_WINDOWS_MINIPORT) 
    /* TODO */
 #else /* !PIPE_SUBSYSTEM_WINDOWS */
+#ifdef DEBUG
    vfprintf(stderr, format, ap);
 #endif
+#endif
 }
 
 




More information about the mesa-commit mailing list