print errors when starting devices

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27308 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-09-03 19:12:18 +00:00
parent 04e088c3a9
commit c08e99ef40

View File

@ -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;
}