Switched to "DEBUG" from "TRACE_MOUSE". That way it's easier to enable syslogging in the driver

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9297 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2004-10-12 09:52:57 +00:00
parent fdbd1b5d7b
commit 6a2b2afab3

View File

@ -65,19 +65,20 @@
#define DEVICE_NAME "input/mouse/ps2/0"
//#define TRACE_PS2MOUSE
#ifdef TRACE_PS2MOUSE
#if DEBUG
#define TRACE(x) dprintf x
#else
#define TRACE(x)
#endif
#ifdef COMPILE_FOR_R5
#include "cbuf_adapter.h"
#else
#include <cbuf.h>
#endif
int32 api_version = B_CUR_DRIVER_API_VERSION;
static isa_module_info *sIsa = NULL;
@ -431,10 +432,8 @@ mouse_open(const char *name, uint32 flags, void **cookie)
*cookie = NULL;
commandByte = get_command_byte();
TRACE(("command byte: 0x%x\n", commandByte));
commandByte |= PS2_BITS_AUX_INTERRUPT;
commandByte &= ~PS2_BITS_MOUSE_DISABLED;
TRACE(("command byte: 0x%x\n", commandByte));
set_command_byte(commandByte);
status = ps2_enable_mouse(true);
@ -526,6 +525,7 @@ mouse_ioctl(void *cookie, uint32 op, void *buf, size_t len)
}
}
/*
* function structure used for file-op registration
*/