From 782bbdb231532e363a57e73f42529a5b23164cba Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 15 Oct 2018 13:47:29 +1000 Subject: [PATCH] touchpad: only log the touch state if we have something to log Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c index 3e62a1c3..12963ebf 100644 --- a/src/evdev-mt-touchpad.c +++ b/src/evdev-mt-touchpad.c @@ -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