mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 02:30:06 +01:00
xfree86: split warning about missing identifier or input driver
Check for identifier first and bail if it's missing (also remove the current identifier check after we've already bailed due to missing identifiers) If a driver is missing, warn but also say that we may have added this device already. I see too many bugreports with incorrectly shortened log files. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org> (cherry picked from commit75953ccb9e) (cherry picked from commita3b6ecc893)
This commit is contained in:
parent
d395749a4e
commit
f12ec33ae0
1 changed files with 6 additions and 5 deletions
|
|
@ -920,15 +920,16 @@ NewInputDeviceRequest (InputOption *options, InputAttributes *attrs,
|
|||
pInfo->attrs = DuplicateInputAttributes(attrs);
|
||||
}
|
||||
|
||||
if (!pInfo->driver || !pInfo->name) {
|
||||
xf86Msg(X_INFO, "No input driver/identifier specified (ignoring)\n");
|
||||
if (!pInfo->name) {
|
||||
xf86Msg(X_INFO, "No identifier specified, ignoring this device.\n");
|
||||
rval = BadRequest;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
if (!pInfo->name) {
|
||||
xf86Msg(X_ERROR, "No device identifier specified (ignoring)\n");
|
||||
rval = BadMatch;
|
||||
if (!pInfo->driver) {
|
||||
xf86Msg(X_INFO, "No input driver specified, ignoring this device.\n");
|
||||
xf86Msg(X_INFO, "This device may have been added with another device file.\n");
|
||||
rval = BadRequest;
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue