From: Paolo Bonzini Date: Fri, 6 Sep 2024 07:33:18 +0000 (+0200) Subject: minikconf: print error entirely on stderr X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f9423e9f0ad14b186c65d6eb207438d2eddd24ea;p=qemu.git minikconf: print error entirely on stderr While debugging an invalid configuration, I noticed that the clauses debug ends up on stderr but the header ("The following clauses were found..." ends up on stdout. This makes the contents of meson-logs/meson-log.txt a bit confusing. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Paolo Bonzini --- diff --git a/scripts/minikconf.py b/scripts/minikconf.py index bcd91015d3..6f7f43b291 100644 --- a/scripts/minikconf.py +++ b/scripts/minikconf.py @@ -112,7 +112,7 @@ class KconfigData: def set_value(self, val, clause): self.clauses_for_var.append(clause) if self.has_value() and self.value != val: - print("The following clauses were found for " + self.name) + print("The following clauses were found for " + self.name, file=sys.stderr) for i in self.clauses_for_var: print(" " + str(i), file=sys.stderr) raise KconfigDataError('contradiction between clauses when setting %s' % self)