From 3b464cb0ce971576cb0d40992a1c77f5f2102bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 22 Sep 2004 10:04:52 +0000 Subject: [PATCH] fixed debug macro git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9030 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../input_server/devices/keyboard/KeyboardInputDevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-ons/input_server/devices/keyboard/KeyboardInputDevice.cpp b/src/add-ons/input_server/devices/keyboard/KeyboardInputDevice.cpp index 0a341eb983..830cd89def 100644 --- a/src/add-ons/input_server/devices/keyboard/KeyboardInputDevice.cpp +++ b/src/add-ons/input_server/devices/keyboard/KeyboardInputDevice.cpp @@ -39,7 +39,7 @@ fputs(buf, KeyboardInputDevice::sLogFile); fflush(KeyboardInputDevice::sLogFile); } #define LOG_ERR(text...) LOG(text) #else - #define LOG(text) + #define LOG(text...) #define LOG_ERR(text...) fprintf(stderr, text) #endif @@ -401,7 +401,7 @@ KeyboardInputDevice::InitFromSettings(void *cookie, uint32 opcode) LOG_ERR("error when get_key_repeat_rate\n"); else if (ioctl(device->fd, kSetKeyRepeatRate, &device->settings.key_repeat_rate)!=B_OK) - LOG_ERR("error when kSetKeyRepeatRate, fd:%li\n", device->fd); + LOG_ERR("error when kSetKeyRepeatRate, fd:%d\n", device->fd); } if (opcode == 0 @@ -411,7 +411,7 @@ KeyboardInputDevice::InitFromSettings(void *cookie, uint32 opcode) LOG_ERR("error when get_key_repeat_delay\n"); else if (ioctl(device->fd, kSetKeyRepeatDelay, &device->settings.key_repeat_delay)!=B_OK) - LOG_ERR("error when kSetKeyRepeatDelay, fd:%li\n", device->fd); + LOG_ERR("error when kSetKeyRepeatDelay, fd:%d\n", device->fd); } if (opcode == 0