From 90f4c1c5a2632c28cf89736328e0d51d7afe9682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Sun, 21 Jul 2019 07:36:13 -0400 Subject: [PATCH] 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(). --- bin/dnssec/dnssec-signzone.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/dnssec/dnssec-signzone.c b/bin/dnssec/dnssec-signzone.c index c440e8f10c..6a030ca594 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