kdrive: output meaningful error message for HAL devices.

kdrive ignores all devices from hal as they don't have the 'type' option
set. Instead of "Unrecognised device identifier!" print out "Ignoring
device from HAL." to indicate that the errors surrounding the device don't
really matter.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Peter Hutterer 2009-09-09 09:28:46 +10:00
parent ae812bb796
commit 1f24638985

View File

@ -2272,6 +2272,14 @@ NewInputDeviceRequest(InputOption *options, DeviceIntPtr *pdev)
return BadValue;
}
}
#ifdef CONFIG_HAL
else if (strcmp(option->key, "_source") == 0 &&
strcmp(option->value, "server/hal") == 0)
{
ErrorF("Ignoring device from HAL.\n");
return BadValue;
}
#endif
}
if (!ki && !pi) {