mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 15:10:26 +01:00
touchpad: only log the touch state if we have something to log
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
2bf3d57fe0
commit
782bbdb231
1 changed files with 2 additions and 1 deletions
|
|
@ -1926,7 +1926,8 @@ tp_debug_touch_state(struct tp_dispatch *tp,
|
|||
t->pressure,
|
||||
tp_touch_active(tp, t) ? "" : "inactive");
|
||||
}
|
||||
evdev_log_debug(device, "touch state: %s\n", buf);
|
||||
if (buf[0] != '\0')
|
||||
evdev_log_debug(device, "touch state: %s\n", buf);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue