And print a divider to make it a bit easier to recognise devices.
Signed-off-by: Peter Hutterer <[email protected]>
---
Still results in some tablets being printed multiple times since we print it
once per bustype that matches.
tools/list-devices.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/list-devices.c b/tools/list-devices.c
index 79d13e8..bba2c38 100644
--- a/tools/list-devices.c
+++ b/tools/list-devices.c
@@ -40,8 +40,10 @@ static void print_device_info (WacomDevice *device,
WacomBusType bus_type_filter
for (match = libwacom_get_matches(device); *match; match++) {
WacomBusType type = libwacom_match_get_bustype(*match);
- if (type != bus_type_filter)
+ if (type == bus_type_filter) {
libwacom_print_device_description(STDOUT_FILENO,
device);
+ dprintf(STDOUT_FILENO,
"---------------------------------------------------------------\n");
+ }
}
}
--
1.8.4.2
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Linuxwacom-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel