From 0fa107fd5db27a1a9f8473bc20a9b8f922b64007 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Thu, 30 Jul 2009 15:18:45 +0000 Subject: [PATCH] Don't spam for expected error returns. We do repeat key handling through timeouts, so B_TIMED_OUT is expected at this point. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31974 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/drivers/input/usb_hid/KeyboardDevice.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/drivers/input/usb_hid/KeyboardDevice.cpp b/src/add-ons/kernel/drivers/input/usb_hid/KeyboardDevice.cpp index fd3c4a5fd7..c614854534 100644 --- a/src/add-ons/kernel/drivers/input/usb_hid/KeyboardDevice.cpp +++ b/src/add-ons/kernel/drivers/input/usb_hid/KeyboardDevice.cpp @@ -334,7 +334,11 @@ KeyboardDevice::_ReadReport(bigtime_t timeout) return B_ERROR; } - TRACE_ALWAYS("error waiting for report: %s\n", strerror(result)); + if (result != B_TIMED_OUT) { + // we expect timeouts as we do repeat key handling this way + TRACE_ALWAYS("error waiting for report: %s\n", strerror(result)); + } + // signal that we simply want to try again return B_OK; }