From f061027dbbcab54007fc39c8948b03af10fd9557 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 19 Oct 2017 12:14:47 +1000 Subject: [PATCH] touchpad: cut down on excessive logging for palm size Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 61d4474a..81a56a05 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -799,8 +799,9 @@ tp_palm_detect_touch_size_triggered(struct tp_dispatch *tp, if (t->major > tp->palm.size_threshold || t->minor > tp->palm.size_threshold) { - evdev_log_debug(tp->device, - "palm: touch size exceeded\n"); + if (t->palm.state != PALM_TOUCH_SIZE) + evdev_log_debug(tp->device, + "palm: touch size exceeded\n"); t->palm.state = PALM_TOUCH_SIZE; return true; }