libusb - no debug messages?

Hans Petter Selasky hps at selasky.org
Sun Nov 15 21:53:21 UTC 2020


On 11/15/20 10:08 PM, Quelrond wrote:
> Hello,
> 
> I'm using the CURRENT snapshot on Raspberry Pi 4.
> 
> My app use libusb from base to communicate with some hardware.
> 
> Probably, libusb is compiled with a debug option as my stderr is flooded 
> by messages like
> 
> LIBUSB_FUNCTION: libusb_open_device_with_vid_pid enter
> LIBUSB_FUNCTION: libusb_open_device_with_vid_pid leave
> 
> I would like to get rid of these messages, but libusb ignores the log 
> options passed by the 'normal' way. Probably, I need to rebuild libusb, 
> but I cannot find the option I need to disable for the build neither the 
> method to pass this option to the compiler.
> 
> Could someone help me?
> 

Hi,

This might help:

/usr/img/freebsd.svn/src/lib/libusb/libusb10.c:	debug = 
getenv("LIBUSB_DEBUG");

env LIBUSB_DEBUG=0

--HPS


More information about the freebsd-arm mailing list