summaryrefslogtreecommitdiff
path: root/tools/list-local-devices.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-06-19 08:49:43 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-06-21 08:15:36 +1000
commitcdea2e3e9198a760bdab71cf1fd72c4aa1db7a20 (patch)
tree019cb624bdbd2a091864ac6506649fca2f2bbdff /tools/list-local-devices.c
parent8772100d371ef79be9f5b3c70cde11505b533820 (diff)
downloadlibwacom-cdea2e3e9198a760bdab71cf1fd72c4aa1db7a20.tar.gz
tools: print the device node for list-local-devices
Makes it easier to identify where an entry comes from. Related #95 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools/list-local-devices.c')
-rw-r--r--tools/list-local-devices.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/list-local-devices.c b/tools/list-local-devices.c
index 2afb1a3..9a786a9 100644
--- a/tools/list-local-devices.c
+++ b/tools/list-local-devices.c
@@ -96,9 +96,12 @@ int main(int argc, char **argv)
char fname[PATH_MAX];
snprintf(fname, sizeof(fname), "/dev/input/%s", namelist[i]->d_name);
+
dev = libwacom_new_from_path(db, fname, WFALLBACK_NONE, NULL);
if (!dev)
continue;
+
+ dprintf(STDOUT_FILENO, "# Device node: %s\n", fname);
libwacom_print_device_description(STDOUT_FILENO, dev);
libwacom_destroy(dev);