mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-24 14:40:07 +01:00
Add quote around device name during error message
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c97839a81e
commit
79041dd602
1 changed files with 1 additions and 1 deletions
|
|
@ -867,7 +867,7 @@ sanitize_event(const struct libevdev *dev, struct input_event *ev)
|
|||
if (unlikely(dev->num_slots > -1 &&
|
||||
libevdev_event_is_code(ev, EV_ABS, ABS_MT_SLOT) &&
|
||||
(ev->value < 0 || ev->value >= dev->num_slots))) {
|
||||
log_bug("Device %s received an invalid slot index %d."
|
||||
log_bug("Device \"%s\" received an invalid slot index %d."
|
||||
"Capping to announced max slot number %d.\n",
|
||||
dev->name, ev->value, dev->num_slots - 1);
|
||||
ev->value = dev->num_slots - 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue