Re: libusb - no debug messages?

Hans Petter Selasky <[email protected]>
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]>
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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.