Fixed debug build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34266 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
fff4c66437
commit
6cb744fecb
@ -21,6 +21,8 @@
|
||||
|
||||
|
||||
#if DEBUG
|
||||
static FILE *sLogFile = NULL;
|
||||
|
||||
inline void
|
||||
LOG(const char *fmt, ...)
|
||||
{
|
||||
@ -29,13 +31,11 @@ LOG(const char *fmt, ...)
|
||||
va_start(ap, fmt);
|
||||
vsprintf(buf, fmt, ap);
|
||||
va_end(ap);
|
||||
fputs(buf, BJoystick::sLogFile); fflush(BJoystick::sLogFile);
|
||||
fputs(buf, sLogFile); fflush(sLogFile);
|
||||
}
|
||||
|
||||
# define LOG_ERR(text...) LOG(text)
|
||||
|
||||
static FILE *sLogFile = NULL;
|
||||
|
||||
#else
|
||||
# define LOG(text...)
|
||||
# define LOG_ERR(text...) fprintf(stderr, text)
|
||||
|
Loading…
Reference in New Issue
Block a user