From: Peter Hutterer Date: Thu, 19 Oct 2017 02:14:47 +0000 (+1000) Subject: touchpad: cut down on excessive logging for palm size X-Git-Tag: 1.9.0~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f061027dbbcab54007fc39c8948b03af10fd9557;p=platform%2Fupstream%2Flibinput.git touchpad: cut down on excessive logging for palm size Signed-off-by: Peter Hutterer --- 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; }