projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db93dce
)
util: flush stdout before emitting debug_printf on stderr
author
Keith Whitwell
<keithw@vmware.com>
Fri, 17 Apr 2009 09:38:07 +0000
(10:38 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Fri, 17 Apr 2009 10:02:07 +0000
(11:02 +0100)
A lot of the mesa demos emit commentary on stdout, try to keep it in
sync with the corresponding output from debug_printf().
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 96a2222f9b680ae9c3d10cbad11ac57bcaaf9949..ae47a274a69ddef2b7ddf7f86d23310372c60585 100644
(file)
--- a/
src/gallium/auxiliary/util/u_debug.c
+++ b/
src/gallium/auxiliary/util/u_debug.c
@@
-109,6
+109,7
@@
void _debug_vprintf(const char *format, va_list ap)
}
if(GetConsoleWindow() && !IsDebuggerPresent()) {
+ fflush(stdout);
vfprintf(stderr, format, ap);
fflush(stderr);
}
@@
-145,6
+146,7
@@
void _debug_vprintf(const char *format, va_list ap)
/* TODO */
#else /* !PIPE_SUBSYSTEM_WINDOWS */
#ifdef DEBUG
+ fflush(stdout);
vfprintf(stderr, format, ap);
#endif
#endif