[vmkit-commits] [vmkit] r60756 - /vmkit/trunk/include/debug.h
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue Dec 9 02:03:39 PST 2008
Author: geoffray
Date: Tue Dec 9 04:03:28 2008
New Revision: 60756
URL: http://llvm.org/viewvc/llvm-project?rev=60756&view=rev
Log:
Debug output to stderr.
Modified:
vmkit/trunk/include/debug.h
Modified: vmkit/trunk/include/debug.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/include/debug.h?rev=60756&r1=60755&r2=60756&view=diff
==============================================================================
--- vmkit/trunk/include/debug.h (original)
+++ vmkit/trunk/include/debug.h Tue Dec 9 04:03:28 2008
@@ -49,16 +49,14 @@
#ifdef WITH_COLOR
#define PRINT_DEBUG(symb, level, color, ...) \
if (symb > level) { \
- printf("%s%s%s", ESC, color, END); \
- printf(__VA_ARGS__); \
- printf("%s%s%s", ESC, COLOR_NORMAL, END); \
- fflush(stdout); \
+ fprintf(stderr, "%s%s%s", ESC, color, END); \
+ fprintf(stderr, __VA_ARGS__); \
+ fprintf(stderr, "%s%s%s", ESC, COLOR_NORMAL, END); \
}
#else
#define PRINT_DEBUG(symb, level, color, ...) \
if (symb > level) { \
- printf(__VA_ARGS__); \
- fflush(stdout); \
+ fprintf(stderr, __VA_ARGS__); \
}
#endif
More information about the vmkit-commits
mailing list