From nobody Thu May 15 05:57:39 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1513254863007295.6209726780461; Thu, 14 Dec 2017 04:34:23 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C47E261491; Thu, 14 Dec 2017 12:34:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 98E966061E; Thu, 14 Dec 2017 12:34:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 642FC3FCF9; Thu, 14 Dec 2017 12:34:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id vBECYKfv011139 for ; Thu, 14 Dec 2017 07:34:20 -0500 Received: by smtp.corp.redhat.com (Postfix) id 39D7960A9D; Thu, 14 Dec 2017 12:34:20 +0000 (UTC) Received: from inaba.usersys.redhat.com (ovpn-204-182.brq.redhat.com [10.40.204.182]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 90C206F982 for ; Thu, 14 Dec 2017 12:34:18 +0000 (UTC) From: Andrea Bolognani To: libvir-list@redhat.com Date: Thu, 14 Dec 2017 13:33:59 +0100 Message-Id: <20171214123401.28950-4-abologna@redhat.com> In-Reply-To: <20171214123401.28950-1-abologna@redhat.com> References: <20171214123401.28950-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v3 3/5] util: Print architecture name in /proc/cpuinfo parser X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 14 Dec 2017 12:34:22 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Instead of a generic "your architecture", print the actual architecture name. Signed-off-by: Andrea Bolognani Reviewed-by: Bjoern Walk --- src/Makefile.am | 1 + src/util/virhostcpu.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 4c022d1e4..166c9a8e9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2477,6 +2477,7 @@ noinst_LTLIBRARIES +=3D libvirt-setuid-rpc-client.la =20 libvirt_setuid_rpc_client_la_SOURCES =3D \ util/viralloc.c \ + util/virarch.c \ util/viratomic.c \ util/viratomic.h \ util/virbitmap.c \ diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c index d47062013..3c20755eb 100644 --- a/src/util/virhostcpu.c +++ b/src/util/virhostcpu.c @@ -554,7 +554,8 @@ virHostCPUParseFrequency(FILE *cpuinfo, prefix =3D "BogoMIPS"; =20 if (!prefix) { - VIR_WARN("Your architecture is not supported by the %s parser", + VIR_WARN("%s is not supported by the %s parser", + virArchToString(arch), CPUINFO_PATH); return 1; } --=20 2.14.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list