From: Brian Date: Sun, 9 Nov 2008 03:43:38 +0000 (-0700) Subject: gallium: _debug_vprintf() should be silent if DEBUG is not defined X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e8315701945ec807b2b5a9d01250b5ab74ae183;p=mesa.git gallium: _debug_vprintf() should be silent if DEBUG is not defined --- 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 }