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:
Jérôme Duval 2005-03-14 16:43:59 +00:00
parent 7e3d359491
commit 376f56d265

View File

@ -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); \
fputs(buf, InputServer::sLogFile); fflush(InputServer::sLogFile); }
#define PRINT(x) _iprint x
#else
#undef PRINT
#define PRINT(x) SERIAL_PRINT(x)
#endif
#define PRINTERR(x) PRINT(x)
#define EXIT() PRINT(("EXIT %s\n", __PRETTY_FUNCTION__))