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:
parent
9aace520df
commit
b48e7fc842
@ -9,6 +9,10 @@
|
||||
#include <OS.h>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
#if DEBUG
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
class BList;
|
||||
class BString;
|
||||
class _BJoystickTweaker;
|
||||
|
@ -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/"
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user