turns on libusb debugging by default

Bug #1206104 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libgphoto2 (Debian)
Fix Released
Unknown
libgphoto2 (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

The change from libusb to libusbx in libgphoto2 (https://launchpad.net/ubuntu/+source/libgphoto2/2.4.14-2.3) now somehow turned on libusbx debugging by default:

$ gphoto2 --auto-detect
libusbx: debug [libusb_get_device_list]
libusbx: debug [discovered_devs_append] need to increase capacity
libusbx: debug [libusb_get_device_descriptor]

The same can be seen when starting shotwell, so it's not a problem in the gphoto2 binary. It does not happen with "lsusb", so it seems it's also not a problem with libusbx itself.

Martin Pitt (pitti)
affects: libusbx (Ubuntu) → libgphoto2 (Ubuntu)
Changed in libgphoto2 (Ubuntu):
status: New → In Progress
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Marcus Meissner (meissner) wrote :

libgphoto2 libgphoto2_port/libusb1/libusb1.c

look for the libusb_set_debug line, comment it out.

Oh, and update to 2.5.2 already, 2.4.14 is 1.5 years old.

Revision history for this message
Martin Pitt (pitti) wrote :

> look for the libusb_set_debug line, comment it out.

Indeed, that's what I did in the build that just finished. I was going to forward it upstream once I confirm that it works, but it seems you beat me to it, thanks!

Changed in libgphoto2 (Ubuntu):
status: In Progress → Fix Committed
Changed in libgphoto2 (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libgphoto2 - 2.4.14-2.3ubuntu2

---------------
libgphoto2 (2.4.14-2.3ubuntu2) saucy; urgency=low

  * Add 03-libusbx-fixes.patch: Backport libusbx code from current upstream
    version. Thanks Marcus Meissner! (LP: #1206204)
 -- Martin Pitt <email address hidden> Wed, 31 Jul 2013 08:30:06 +0200

Changed in libgphoto2 (Ubuntu):
status: Fix Committed → Fix Released
Changed in libgphoto2 (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.