when debug = 1, debug output goes to serial, when debug = 2, it goes to a file
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11736 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -259,7 +259,9 @@ public:
|
|||||||
inline void _iprint(const char *fmt, ...) { char buf[1024]; va_list ap; va_start(ap, fmt); vsprintf(buf, fmt, ap); va_end(ap); \
|
inline void _iprint(const char *fmt, ...) { char buf[1024]; va_list ap; va_start(ap, fmt); vsprintf(buf, fmt, ap); va_end(ap); \
|
||||||
fputs(buf, InputServer::sLogFile); fflush(InputServer::sLogFile); }
|
fputs(buf, InputServer::sLogFile); fflush(InputServer::sLogFile); }
|
||||||
#define PRINT(x) _iprint x
|
#define PRINT(x) _iprint x
|
||||||
|
#else
|
||||||
|
#undef PRINT
|
||||||
|
#define PRINT(x) SERIAL_PRINT(x)
|
||||||
#endif
|
#endif
|
||||||
#define PRINTERR(x) PRINT(x)
|
#define PRINTERR(x) PRINT(x)
|
||||||
#define EXIT() PRINT(("EXIT %s\n", __PRETTY_FUNCTION__))
|
#define EXIT() PRINT(("EXIT %s\n", __PRETTY_FUNCTION__))
|
||||||
|
|||||||
Reference in New Issue
Block a user