From owner-freebsd-arm@freebsd.org Sun Nov 15 21:53:21 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3D82B46B0A2 for ; Sun, 15 Nov 2020 21:53:21 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CZ5YX35wpz3mgZ for ; Sun, 15 Nov 2020 21:53:20 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CE26F260215; Sun, 15 Nov 2020 22:53:12 +0100 (CET) Subject: Re: libusb - no debug messages? To: Quelrond , freebsd-arm@freebsd.org References: <9e88cd9e-bf99-b6e0-abf1-d55333388b62@gmail.com> From: Hans Petter Selasky Message-ID: <4ca3d93a-2bcd-22b9-858f-fc99ba7dc1a1@selasky.org> Date: Sun, 15 Nov 2020 22:53:06 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.4.1 MIME-Version: 1.0 In-Reply-To: <9e88cd9e-bf99-b6e0-abf1-d55333388b62@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CZ5YX35wpz3mgZ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.30 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; ARC_NA(0.00)[]; SPAMHAUS_ZRD(0.00)[88.99.82.50:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[88.99.82.50:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2020 21:53:21 -0000 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