From nobody Sun Nov 24 05:48:38 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1725608035; cv=none; d=zohomail.com; s=zohoarc; b=RjOUVI1o/vUWsPWU2vs1IqzFaUVMvfTiULwMTLCZvEvilIj3LnLLXfrEMLk1/sKXSfoYJP8gk221Gi9IoCTAP6QyYIT3UAcFG6mD4DKbGnNvVJ+nH13uvGIvec8+JltIJt73IxLQKrIeLJnWCUFJD/8298JhIba7ZqwlT3b9KT4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1725608035; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=LeK2KxjuVhJiBGezPo0zKQhL87mojsaut9uWjJpnJgA=; b=SLLtb/h5JFaD1T37TxbNX4FZJXRc7zl+iW2vm6i75cG6j2bUiPRkek+chiJreYRxbO9l9gIiINVGWoJxyZ4/Metv7Nky3XQ3xg7EBSKWrzmjs+ya4nV+DgYXEycXV5oeByD3GnjbDJp0hTMm8Hn6M04z0oNevfXM1LzKhc/SXoo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 172560803525928.043379149485872; Fri, 6 Sep 2024 00:33:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smTTP-0007hB-SX; Fri, 06 Sep 2024 03:33:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smTTN-0007Z0-M6 for qemu-devel@nongnu.org; Fri, 06 Sep 2024 03:33:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smTTM-0008W9-3e for qemu-devel@nongnu.org; Fri, 06 Sep 2024 03:33:37 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-581-QdqOLZWOPBC-b-nQXB9jqw-1; Fri, 06 Sep 2024 03:33:33 -0400 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-374c54e188dso1463798f8f.1 for ; Fri, 06 Sep 2024 00:33:33 -0700 (PDT) Received: from avogadro.local ([151.95.101.29]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ca05cc3dbsm11051745e9.20.2024.09.06.00.33.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 00:33:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725608015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=LeK2KxjuVhJiBGezPo0zKQhL87mojsaut9uWjJpnJgA=; b=Zu4nj700st8b/imGEe1HZ12NrG+tF5/jTj5lpm2WSceWeQdUP7VPuWU9EJ6dEhLWCRMhXK NhQTcCzaN/aGMXDNacTVROCqiaBSYcIpyfUyhAbfSHrVKEg2UPvezYOv0BX04hd/tpVcyq a+dkJvNKy+iqVxZXnNOQvpcmf/WiLvQ= X-MC-Unique: QdqOLZWOPBC-b-nQXB9jqw-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725608012; x=1726212812; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LeK2KxjuVhJiBGezPo0zKQhL87mojsaut9uWjJpnJgA=; b=A3ENMJgy30YaLRvjd8qyD6TvGl2bUEFUmZ5qzpzQwLXbNZGow+QpRW4WemEQ+vR6hN KyoDCCanoq6Ml1CITJxpk3BGtN5axgjKwjyjFQOp/5VCHYiHgvponF2BzqUYB2cATAJ9 8/hy+2XcGPAtoMCAk76gKECV2MdDxJG/sYztpL86DMAiabqQmpMY9zXzLipGHDlF+a5L jgbd/5B9uy43RWulV4vwTBRYnJwynLBVeUJRETiODHkFJiONeHbbi7G+Pn0/f/Syh2VG GlOIACwB9LFV8GKpvFL+vnywRQzAu3EMZpCrY2bJnsfKWFcchgGC2J/aAPgpjFN8an43 vy5g== X-Gm-Message-State: AOJu0YyFRXx5ERFnGpqkFCoAbczcw2pe4koFdWgt33mJb2wFT1PONCR1 NDCZHWaLOdEK6AHIatvurlLdCp+bMTFFSRX7vVozz1AgU89ThAv0M55TBAT0Xp23erNyVrFZGFy Z6e84/JywFBGztIP+gpstLG2oq3ku6S2GTlV8HOYaPanTro7fj4E826sMHTV+TlzS7aXA6/VmEM tjyrPgNYa2px1ZRGUjx/P7qh7E5LN1ivWlBEvWOrA= X-Received: by 2002:a5d:4801:0:b0:374:c878:21f7 with SMTP id ffacd0b85a97d-37799f5e676mr5000046f8f.10.1725608011662; Fri, 06 Sep 2024 00:33:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGoe8dS41a7z2hgCIjt2i3XFy2EOBDx8XcJFOf1cpnErTdWXMRlHRmNUcr1pv1bw3Way1phAQ== X-Received: by 2002:a5d:4801:0:b0:374:c878:21f7 with SMTP id ffacd0b85a97d-37799f5e676mr5000020f8f.10.1725608011037; Fri, 06 Sep 2024 00:33:31 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH] minikconf: print error entirely on stderr Date: Fri, 6 Sep 2024 09:33:28 +0200 Message-ID: <20240906073328.492089-1-pbonzini@redhat.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1725608036347116600 Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- scripts/minikconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/minikconf.py b/scripts/minikconf.py index bcd91015d34..6f7f43b2918 100644 --- a/scripts/minikconf.py +++ b/scripts/minikconf.py @@ -112,7 +112,7 @@ def has_value(self): def set_value(self, val, clause): self.clauses_for_var.append(clause) if self.has_value() and self.value !=3D val: - print("The following clauses were found for " + self.name) + print("The following clauses were found for " + self.name,= file=3Dsys.stderr) for i in self.clauses_for_var: print(" " + str(i), file=3Dsys.stderr) raise KconfigDataError('contradiction between clauses when= setting %s' % self) --=20 2.46.0