summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-11-08 20:43:38 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-11-09 09:45:12 -0700
commit7e8315701945ec807b2b5a9d01250b5ab74ae183 (patch)
tree177a792b37ffb32e74f7225f97665bddd11b6329
parenteb459814b7e7adc8b5f0062128f4ea4ff68b07cf (diff)
gallium: _debug_vprintf() should be silent if DEBUG is not defined
-rw-r--r--src/gallium/auxiliary/util/p_debug.c2
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 b6cff281e6d..6ff3e6e0a62 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
}