On Wed, Feb 5, 2014 at 6:47 PM, Peter Hutterer <peter.hutte...@who-t.net>wrote:

> And print a divider to make it a bit easier to recognise devices.
>
> Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
> ---
> Still results in some tablets being printed multiple times since we print
> it
> once per bustype that matches.
>

The output is 39kb now vs 100kb before. If that was the goal, then:

Tested-by: Ping Cheng <pingli...@gmail.com>

Ping


>  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
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to