From: Peter Hutterer Date: Thu, 30 Nov 2017 04:21:22 +0000 (+1000) Subject: tools: print the device in all measure tools X-Git-Tag: 1.9.4~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf857d38416ecbfbd358d477c0fb90137c48ab03;p=platform%2Fupstream%2Flibinput.git tools: print the device in all measure tools Signed-off-by: Peter Hutterer (cherry picked from commit 0b8372962b425437ac7d1248cffccf4a7890a556) --- 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) #