mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-05-06 05:38:09 +02:00
Add a FIXME to log a warning message
When a sync is complete and the first event is a SYN_DROPPED again, we have a problem. Log that so that the process can print a warning. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9ddd477f62
commit
6482f9ad2a
1 changed files with 2 additions and 0 deletions
|
|
@ -552,6 +552,8 @@ int libevdev_next_event(struct libevdev *dev, unsigned int flags, struct input_e
|
||||||
* event in the queue from the previous read.
|
* event in the queue from the previous read.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* FIXME: if the first event after syncing is a SYN_DROPPED, log this */
|
||||||
|
|
||||||
/* Always read in some more events. Best case this smoothes over a potential SYN_DROPPED,
|
/* Always read in some more events. Best case this smoothes over a potential SYN_DROPPED,
|
||||||
worst case we don't read fast enough and end up with SYN_DROPPED anyway */
|
worst case we don't read fast enough and end up with SYN_DROPPED anyway */
|
||||||
rc = read_more_events(dev);
|
rc = read_more_events(dev);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue