From nobody Tue Dec 16 13:56:27 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1740065301093240.28648336674223; Thu, 20 Feb 2025 07:28:21 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 74977224C; Thu, 20 Feb 2025 10:28:20 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 0575D2171; Thu, 20 Feb 2025 10:26:45 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 707DF1F6F; Thu, 20 Feb 2025 10:26:40 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id DE6C41F6F for ; Thu, 20 Feb 2025 10:26:28 -0500 (EST) Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-418-kTtqVxTLOw684DwSh9wKXQ-1; Thu, 20 Feb 2025 10:26:27 -0500 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B03B51800982 for ; Thu, 20 Feb 2025 15:26:26 +0000 (UTC) Received: from orkuz (unknown [10.43.3.115]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 322EA1955BCB for ; Thu, 20 Feb 2025 15:26:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1740065188; 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: in-reply-to:in-reply-to:references:references; bh=reLi9XzDqiyc2QlKj1WkhSnGOG7y2PjpqujEzrrvIc4=; b=QYuX/d1OVH54EasqYuC1anQtNDpIewX3C0tw9gbGPRCU8Aodup1KB+Sgs6bKCGz/xm1oA0 Hb4vT2iD52PZCdu1PW3+HUT+LmYbDpEGtx5Lhmp6qO8lMfyqMbk4DXOR+BcV4xIfcINyXf PcJCNk8hAZVm0bjYgr4rUUXalibM5DA= X-MC-Unique: kTtqVxTLOw684DwSh9wKXQ-1 X-Mimecast-MFC-AGG-ID: kTtqVxTLOw684DwSh9wKXQ_1740065186 From: Jiri Denemark To: devel@lists.libvirt.org Subject: [PATCH 04/13] virsh: Make messages printed by vshError properly translatable Date: Thu, 20 Feb 2025 16:26:06 +0100 Message-ID: <32503fc6cef3495acd564b369362e6770d17ceb8.1740064957.git.jdenemar@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 3b-px8a0IzwA9tbpcDgIjet624anDGlz4_LQfEyVh58_1740065186 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: YRULWZ33GGWIWU7DVQP5NRXV6ZAAJ5XH X-Message-ID-Hash: YRULWZ33GGWIWU7DVQP5NRXV6ZAAJ5XH X-MailFrom: jdenemar@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1740065301755019000 Content-Type: text/plain; charset="utf-8" Signed-off-by: Jiri Denemark --- tools/vsh.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/vsh.c b/tools/vsh.c index 1b650bdd9b..64507fe560 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -2128,9 +2128,7 @@ vshError(vshControl *ctl, const char *format, ...) * printing to stderr will not interleave correctly with stdout * unless we flush between every transition between streams. */ fflush(stdout); - fputs(_("error: "), stderr); - - fprintf(stderr, "%s\n", NULLSTR(str)); + fprintf(stderr, _("error: %1$s\n"), NULLSTR(str)); fflush(stderr); } =20 --=20 2.48.1