summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-10-15 13:47:29 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-10-15 14:07:41 +1000
commit782bbdb231532e363a57e73f42529a5b23164cba (patch)
tree1a54147d87538fc37b0d94790f4618cebbf797e1
parent2bf3d57fe095c50389baa17d1d5bdab99f88394f (diff)
touchpad: only log the touch state if we have something to log
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/evdev-mt-touchpad.c3
1 files changed, 2 insertions, 1 deletions
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