mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
dont spam xserver with false-positives
It's not necessary to spam the xserver log with error messages of just temporary read failures that aren't actually errors. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-input-evdev/-/merge_requests/6>
This commit is contained in:
@@ -1077,11 +1077,13 @@ EvdevReadInput(InputInfoPtr pInfo)
|
||||
do {
|
||||
rc = libevdev_next_event(pEvdev->dev, LIBEVDEV_READ_FLAG_NORMAL, &ev);
|
||||
if (rc < 0) {
|
||||
if (rc == -ENODEV) /* May happen after resume */
|
||||
if (rc != -EAGAIN && rc != -EINTR && rc != -EWOULDBLOCK) {
|
||||
/* May happen after resume or at device detach */
|
||||
xf86RemoveEnabledDevice(pInfo);
|
||||
else if (rc != -EAGAIN)
|
||||
EvdevCloseDevice(pInfo);
|
||||
LogMessageVerbSigSafe(X_ERROR, 0, "%s: Read error: %s\n", pInfo->name,
|
||||
strerror(-rc));
|
||||
}
|
||||
break;
|
||||
} else if (rc == LIBEVDEV_READ_STATUS_SUCCESS) {
|
||||
if (pEvdev->mtdev)
|
||||
|
||||
Reference in New Issue
Block a user