From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 7E0973857828 for ; Wed, 11 Nov 2020 20:57:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7E0973857828 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-408-WfftodtEM7Wu2iTh7owORQ-1; Wed, 11 Nov 2020 15:57:29 -0500 X-MC-Unique: WfftodtEM7Wu2iTh7owORQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5F230905C23; Wed, 11 Nov 2020 20:57:28 +0000 (UTC) Received: from redhat.com (ovpn-112-64.phx2.redhat.com [10.3.112.64]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 40FFD10027A5; Wed, 11 Nov 2020 20:57:28 +0000 (UTC) Received: from fche by redhat.com with local (Exim 4.94) (envelope-from ) id 1kcxBG-0002qz-SR; Wed, 11 Nov 2020 15:57:26 -0500 Date: Wed, 11 Nov 2020 15:57:26 -0500 From: "Frank Ch. Eigler" To: Mark Wielaard Cc: elfutils-devel@sourceware.org Subject: Re: [PATCH] debuginfod-find: Be a bit less verbose with -v Message-ID: <20201111205726.GA27217@redhat.com> References: <20201111203138.28306-1-mark@klomp.org> MIME-Version: 1.0 In-Reply-To: <20201111203138.28306-1-mark@klomp.org> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2020 20:57:32 -0000 Hi - On Wed, Nov 11, 2020 at 09:31:38PM +0100, Mark Wielaard wrote: > debuginfod-find -v enables a progressfn that prints the Progress every > time the callback is called. [...] > [...] > - fprintf (stderr, "Progress %ld / %ld\n", a, b); > [...] Another option is to use something close what the builtin env DEBUGINFOD_PROGRESS=1 code does: print self-overwriting messages with \r rather than \n. That way many messages can come, but they don't overpower the screen. Really, the main reason I put in this progressfn into debuginfod-find was to help test that API within the testsuite. Maybe now, we don't need that option to do anything but set the env var, therby using the common code. - FChE