mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:03:33 +03:00
tool: use errorf() for error output
Convert a number of fprintf() calls.
This commit is contained in:
parent
6d45b9ca9c
commit
741f7ed4bc
10 changed files with 38 additions and 37 deletions
|
|
@ -136,7 +136,7 @@ void helpf(FILE *errors, const char *fmt, ...)
|
|||
*/
|
||||
void errorf(struct GlobalConfig *config, const char *fmt, ...)
|
||||
{
|
||||
if(!config->silent) {
|
||||
if(!config->silent || config->showerror) {
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
voutf(config, ERROR_PREFIX, fmt, ap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue