[Spice-devel] [PATCH usbredir v2] usbredirserver: don't show logs after a failure open
Frediano Ziglio
fziglio at redhat.com
Tue Nov 28 08:47:36 UTC 2017
>
> From: Chen Hanxiao <chenhanxiao at gmail.com>
>
> If we did't open a USB device successfully,
> don't try to show that USB device info logs.
>
> Signed-off-by: Chen Hanxiao <chenhanxiao at gmail.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> v2: modified the wrong title
>
> usbredirserver/usbredirserver.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/usbredirserver/usbredirserver.c
> b/usbredirserver/usbredirserver.c
> index 131ed5e..5a4adc5 100644
> --- a/usbredirserver/usbredirserver.c
> +++ b/usbredirserver/usbredirserver.c
> @@ -366,8 +366,7 @@ int main(int argc, char *argv[])
> fprintf(stderr,
> "Could not open an usb-device with vid:pid %04x:%04x\n",
> usbvendor, usbproduct);
> - }
> - if (verbose >= usbredirparser_info) {
> + } else if (verbose >= usbredirparser_info) {
> libusb_device *dev;
> dev = libusb_get_device(handle);
> fprintf(stderr, "Open a usb-device with vid:pid %04x:%04x on
> "
More information about the Spice-devel
mailing list