Date: Sun, 15 Nov 2020 22:53:06 +0100 From: Hans Petter Selasky <hps@selasky.org> To: Quelrond <quelrond@gmail.com>, freebsd-arm@freebsd.org Subject: Re: libusb - no debug messages? Message-ID: <4ca3d93a-2bcd-22b9-858f-fc99ba7dc1a1@selasky.org> In-Reply-To: <9e88cd9e-bf99-b6e0-abf1-d55333388b62@gmail.com> References: <9e88cd9e-bf99-b6e0-abf1-d55333388b62@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ca3d93a-2bcd-22b9-858f-fc99ba7dc1a1>