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:
parent
ae812bb796
commit
1f24638985
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue