Re: [PATCH] debuginfod-find: Be a bit less verbose with -v

2020-11-17 Thread Mark Wielaard
On Wed, 2020-11-11 at 22:24 +0100, Mark Wielaard wrote: > On Wed, 2020-11-11 at 15:57 -0500, Frank Ch. Eigler wrote: > > 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 calle

Re: [PATCH] debuginfod-find: Be a bit less verbose with -v

2020-11-11 Thread Mark Wielaard
Hi Frank, On Wed, 2020-11-11 at 15:57 -0500, Frank Ch. Eigler wrote: > 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 %l

Re: [PATCH] debuginfod-find: Be a bit less verbose with -v

2020-11-11 Thread Frank Ch. Eigler via Elfutils-devel
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

[PATCH] debuginfod-find: Be a bit less verbose with -v

2020-11-11 Thread Mark Wielaard
debuginfod-find -v enables a progressfn that prints the Progress every time the callback is called. For slow transfers or big downloads this can be really verbose (hundreds a times a second). Slow it down a bit, so it only prints the progress at most 5 times a second. Signed-off-by: Mark Wielaard