]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
minikconf: print error entirely on stderr
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Sep 2024 07:33:18 +0000 (09:33 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 3 Oct 2024 17:33:55 +0000 (19:33 +0200)
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é <philmd@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/minikconf.py

index bcd91015d34a69f793efab42c6915d6348e30abb..6f7f43b291816d2549eb85c69d253605b83103ee 100644 (file)
@@ -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)