kopia lustrzana https://gitlab.com/sane-project/backends
Setup libusb1 debugging after initialization
otherwise a segfault appears in triple -v mode.merge-requests/1/head
rodzic
985bd91064
commit
74eb71fa19
|
@ -2,7 +2,7 @@
|
|||
check-usb-chip.c -- Find out what USB scanner chipset is used
|
||||
|
||||
Copyright (C) 2003-2005 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
Copyright (C) 2003 Gerhard J<EFBFBD>ger <gerhard@gjaeger.de>
|
||||
Copyright (C) 2003 Gerhard Jaeger <gerhard@gjaeger.de>
|
||||
for LM983x tests
|
||||
Copyright (C) 2003 Gerard Klaver <gerard at gkall dot hobby dot nl>
|
||||
for ICM532B tests
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* sane-find-scanner.c
|
||||
|
||||
Copyright (C) 1997-2005 Oliver Rauch, Henning Meier-Geinitz, and others.
|
||||
Copyright (C) 1997-2013 Oliver Rauch, Henning Meier-Geinitz, and others.
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
|
@ -1991,9 +1991,6 @@ main (int argc, char **argv)
|
|||
if (verbose > 2)
|
||||
printf ("trying libusb:\n");
|
||||
|
||||
if (verbose > 3)
|
||||
libusb_set_debug (sfs_usb_ctx, 3);
|
||||
|
||||
ret = libusb_init (&sfs_usb_ctx);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
@ -2003,6 +2000,9 @@ main (int argc, char **argv)
|
|||
goto failed_libusb_1_0;
|
||||
}
|
||||
|
||||
if (verbose > 3)
|
||||
libusb_set_debug (sfs_usb_ctx, 3);
|
||||
|
||||
devcnt = libusb_get_device_list (sfs_usb_ctx, &devlist);
|
||||
if (devcnt < 0)
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue