Fix Device Kit build in debug mode.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33110 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2009-09-13 01:30:38 +00:00
parent 9aace520df
commit b48e7fc842
3 changed files with 11 additions and 3 deletions

View File

@ -9,6 +9,10 @@
#include <OS.h>
#include <SupportDefs.h>
#if DEBUG
#include <stdio.h>
#endif
class BList;
class BString;
class _BJoystickTweaker;

View File

@ -11,6 +11,10 @@
#include <List.h>
#include <Entry.h>
#if DEBUG
#include <stdio.h>
#endif
#define DEVICEPATH "/dev/joystick/"
#define JOYSTICKPATH "/boot/home/config/settings/joysticks/"

View File

@ -31,10 +31,10 @@ LOG(const char *fmt, ...)
va_start(ap, fmt);
vsprintf(buf, fmt, ap);
va_end(ap);
fputs(buf, BJoystick::sLogFile); fflush(BJoystick::sLogFile);
fputs(buf, _BJoystickTweaker::sLogFile); fflush(_BJoystickTweaker::sLogFile);
}
# define LOG_ERR(text...) LOG(text)
FILE *BJoystick::sLogFile = NULL;
FILE *_BJoystickTweaker::sLogFile = NULL;
#else
# define LOG(text...)
# define LOG_ERR(text...) fprintf(stderr, text)
@ -184,7 +184,7 @@ _BJoystickTweaker::_BuildFromJoystickDesc(char *string, _joystick_info* info)
str.RemoveFirst("num_sticks = ");
info->num_sticks = atoi(str.String());
} else {
LOG("Path = %s\n", str->String());
LOG("Path = %s\n", str.String());
}
}