From: Stefan Beller Date: Wed, 31 Aug 2016 22:07:54 GMT Subject: Re: [PATCH v13 06/14] apply: make it possible to silently apply Message-ID: In-Reply-To: <20160827184547.4365-7-chriscool@tuxfamily.org> > Printing on stdout, and calls to warning() or error() are not > taken care of in this patch, as that will be done in following > patches. > - if (state->apply_verbosely) > + if (state->apply_verbosity > verbosity_normal) > error(_("while searching for:\n%.*s"), > (int)(old - oldlines), oldlines); But this is an error(..) ? Have you considered to replace all these print functions (error, warning, fprintf, printf, fprintf_ln) with another custom int say_when_at_least(verbosity level, const char *fmt,...) ? (I guess that would be more invasive, but the result would be more consistent.)