From 6a2b2afab32fc7e6ad71e2b3b19c441625ccedce Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 12 Oct 2004 09:52:57 +0000 Subject: [PATCH] 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 --- src/add-ons/kernel/drivers/arch/x86/ps2mouse/ps2mouse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/add-ons/kernel/drivers/arch/x86/ps2mouse/ps2mouse.c b/src/add-ons/kernel/drivers/arch/x86/ps2mouse/ps2mouse.c index eb127b99b2..47638bfb0f 100644 --- a/src/add-ons/kernel/drivers/arch/x86/ps2mouse/ps2mouse.c +++ b/src/add-ons/kernel/drivers/arch/x86/ps2mouse/ps2mouse.c @@ -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 #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 */