From bf857d38416ecbfbd358d477c0fb90137c48ab03 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 30 Nov 2017 14:21:22 +1000 Subject: [PATCH] tools: print the device in all measure tools Signed-off-by: Peter Hutterer (cherry picked from commit 0b8372962b425437ac7d1248cffccf4a7890a556) --- tools/libinput-measure-touch-size | 3 +++ tools/libinput-measure-touchpad-pressure | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tools/libinput-measure-touch-size b/tools/libinput-measure-touch-size index b7aa0e99..f6097498 100755 --- a/tools/libinput-measure-touch-size +++ b/tools/libinput-measure-touch-size @@ -186,6 +186,9 @@ class Device(object): self.path = path self.device = evdev.InputDevice(self.path) + + print("Using {}: {}\n".format(self.device.name, self.path)) + # capabilities returns a dict with the EV_* codes as key, # each of which is a list of tuples of (code, AbsInfo) # diff --git a/tools/libinput-measure-touchpad-pressure b/tools/libinput-measure-touchpad-pressure index 052d64d3..83ae224e 100755 --- a/tools/libinput-measure-touchpad-pressure +++ b/tools/libinput-measure-touchpad-pressure @@ -145,6 +145,9 @@ class Device(object): self.path = path self.device = evdev.InputDevice(self.path) + + print("Using {}: {}\n".format(self.device.name, self.path)) + # capabilities rturns a dict with the EV_* codes as key, # each of which is a list of tuples of (code, AbsInfo) #