[Pkg-phototools-devel] Bug#727217: libusbx debug noise
Aurelien Jarno
aurelien at aurel32.net
Mon Dec 9 08:42:03 UTC 2013
On Wed, Oct 23, 2013 at 04:10:48PM +0200, Yuri D'Elia wrote:
> Package: gphoto2
> Version: 2.4.14-1
> Severity: normal
>
> I'm getting a ton of libusbx debug output when invoking gphoto2:
>
> ========================
> $ gphoto2 -L
> libusbx: debug [libusb_get_device_list]
> libusbx: debug [discovered_devs_append] need to increase capacity
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_config_descriptor] index 0
> libusbx: debug [libusb_exit]
> libusbx: debug [libusb_exit] destroying default context
> libusbx: debug [libusb_get_device_list]
> libusbx: debug [discovered_devs_append] need to increase capacity
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_config_descriptor] index 0
> libusbx: debug [parse_configuration] skipping descriptor 0xb
>
> libusbx: debug [parse_endpoint] skipping descriptor 25
> libusbx: debug [libusb_exit]
> libusbx: debug [libusb_exit] destroying default context
> libusbx: debug [libusb_get_device_list]
> libusbx: debug [discovered_devs_append] need to increase capacity
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_device_descriptor]
> libusbx: debug [libusb_get_config_descriptor] index 0
> libusbx: debug [libusb_exit]
> libusbx: debug [libusb_exit] destroying default context
> There is no file in folder '/'.
> ========================
>
> The manual page states something about the --debug flag or USB_DEBUG
> environment variable, neither of which I'm using.
>
> Using --debug-logfile doesn't redirect it either.
>
> The level of noise is so high that makes the command unuseable.
This is something to be expected, given libghoto2 explicitely asks
libusbx to enable debugging output in libgphoto2_port/libusb1/libusb1.c:
| static int gp_port_usb_init (GPPort *port)
| {
| port->pl = malloc (sizeof (GPPortPrivateLibrary));
| if (!port->pl)
| return (GP_ERROR_NO_MEMORY);
| memset (port->pl, 0, sizeof (GPPortPrivateLibrary));
|
| port->pl->config = port->pl->interface = port->pl->altsetting = -1;
|
| libusb_init (&port->pl->ctx);
| libusb_set_debug (port->pl->ctx, 255);
| ...
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien at aurel32.net http://www.aurel32.net
More information about the Pkg-phototools-devel
mailing list