From: Ondřej Surý Date: Sun, 21 Jul 2019 11:36:13 +0000 (-0400) Subject: Use stdout to print information about signing X-Git-Tag: v9.15.3~21^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90f4c1c5a2632c28cf89736328e0d51d7afe9682;p=thirdparty%2Fbind9.git Use stdout to print information about signing Previously, the default output from the libdns library went to stderr by default. This was inconsistent with the rest of the output. This commit changes the default logging to go to stdout, with notable exception - when the output of the signing process goes to stdout, the messages are printed to the stderr. This is consistent with other functions that output information about the signing process - e.g. print_stats(). --- diff --git a/bin/dnssec/dnssec-signzone.c b/bin/dnssec/dnssec-signzone.c index c440e8f10c2..6a030ca594c 100644 --- a/bin/dnssec/dnssec-signzone.c +++ b/bin/dnssec/dnssec-signzone.c @@ -2645,11 +2645,12 @@ loadexplicitkeys(char *keyfiles[], int n, bool setksk) { static void report(const char *format, ...) { + FILE *out = output_stdout ? stderr : stdout; va_list args; va_start(args, format); - vfprintf(stderr, format, args); + vfprintf(out, format, args); va_end(args); - putc('\n', stderr); + putc('\n', out); } static void