projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa5db68
)
util: _debug_printf should print even when DEBUG is not defined
author
Keith Whitwell
<keithw@vmware.com>
Thu, 16 Jul 2009 16:51:02 +0000
(17:51 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Wed, 22 Jul 2009 11:47:59 +0000
(12:47 +0100)
The leading underscore is meaningful... This function is used by
_warning and _error functions as well as the more common
debug_printf().
debug_printf (without underscore) gets turned off when DEBUG is
disabled, but warning/error messages still use this function to get
their message out.
src/gallium/auxiliary/util/u_debug.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_debug.c
b/src/gallium/auxiliary/util/u_debug.c
index a5ca0b72bd7a01f929ca58a684a6ccd6cd3342d0..96d400c839b166669b3702657e5d01116dd56792 100644
(file)
--- a/
src/gallium/auxiliary/util/u_debug.c
+++ b/
src/gallium/auxiliary/util/u_debug.c
@@
-143,11
+143,9
@@
void _debug_vprintf(const char *format, va_list ap)
#elif defined(PIPE_SUBSYSTEM_WINDOWS_MINIPORT)
/* TODO */
#else /* !PIPE_SUBSYSTEM_WINDOWS */
-#ifdef DEBUG
fflush(stdout);
vfprintf(stderr, format, ap);
#endif
-#endif
}