From c08e99ef4022bd091eb25c8cc46333d410585b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 3 Sep 2008 19:12:18 +0000 Subject: [PATCH] print errors when starting devices git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27308 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/input/InputServer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/servers/input/InputServer.cpp b/src/servers/input/InputServer.cpp index 0556d359e9..39eb198f75 100644 --- a/src/servers/input/InputServer.cpp +++ b/src/servers/input/InputServer.cpp @@ -80,7 +80,10 @@ void InputDeviceListItem::Start() { PRINT((" Starting: %s\n", fDevice.name)); - fServerDevice->Start(fDevice.name, fDevice.cookie); + status_t err = fServerDevice->Start(fDevice.name, fDevice.cookie); + if (err != B_OK) { + PRINTERR((" error: %s (%lx)\n", strerror(err), err)); + } fRunning = true; }