From nobody Fri Apr 26 09:49:40 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=quarantine dis=quarantine) header.from=huawei.com ARC-Seal: i=1; a=rsa-sha256; t=1668651643; cv=none; d=zohomail.com; s=zohoarc; b=eENVWCrr2Ex1NQ56r5h6/tsEx08DNv50xCCj0e9k9DqQkE1nJmHWb8MX41TZgxZLj+rQZ2VAgQ7ZiA6wnkm1+r06MjNsZjdyNDcledepW6/0CuaeHq/5LI8VRk4gThOGzo8SON5Dx4HAdsHG8nphnJ8UH3gIRsjvywlhZgiulNY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1668651643; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=iWWBHXe9qkJghnTAyGZLuqTFjBKflr2vhGP+m8JzWMQ=; b=TBGtHs/CsedrTdZYmfUHQzYf/LeQnL8npxjxQuRTRIDQ5Ean7WfpiI5+jpjHxrV6ivgO9XhWRXO5mYgXfb2JYtMjO8WfDaP7QZzabTuR7BFFPfaz+40tf1gwTV4PO1LwXnTvg9S0JZn2VvM2TZqXHNj98t0aSD98WKUM5ICE2s4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=quarantine dis=quarantine) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1668651643920286.732019862162; Wed, 16 Nov 2022 18:20:43 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-44-EcL4sUOgMWubkGHblI6OHA-1; Wed, 16 Nov 2022 21:20:37 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 39375185A7A8; Thu, 17 Nov 2022 02:20:35 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id A61952027064; Thu, 17 Nov 2022 02:20:34 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 5168E19465A3; Thu, 17 Nov 2022 02:20:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 6480319465A2 for ; Thu, 17 Nov 2022 02:20:31 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 46DFC2166B36; Thu, 17 Nov 2022 02:20:31 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3F8202166B29 for ; Thu, 17 Nov 2022 02:20:31 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 23DF485A5A6 for ; Thu, 17 Nov 2022 02:20:31 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-204--IWlT9sKMZ24jYrbEkn6Zg-1; Wed, 16 Nov 2022 21:20:28 -0500 Received: from dggpeml500022.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4NCNst2D4Wz15Ml1 for ; Thu, 17 Nov 2022 10:20:02 +0800 (CST) Received: from localhost.localdomain (10.175.124.27) by dggpeml500022.china.huawei.com (7.185.36.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 17 Nov 2022 10:20:24 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668651642; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=iWWBHXe9qkJghnTAyGZLuqTFjBKflr2vhGP+m8JzWMQ=; b=OT1s7p32j5Ew/FWkocJLKbmCkNZw1NmnWgp9ENWNx8dZ7Gwng1+w+53W9Bt5b7tMcCvDzL f3P7zIVMIzZiIU8AwIsJvbg1nyA0nJZeI5bOJGfggu8ZjymbnPKZDBSMhBOV0kvnVnbWH0 TfLFulMxrPQYcMERQpGHbUZ30hfMHSw= X-MC-Unique: EcL4sUOgMWubkGHblI6OHA-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: -IWlT9sKMZ24jYrbEkn6Zg-1 From: Jiang Jiacheng To: Subject: [PATCH] cpu_arm: fix the compile warning of unexpected format Date: Thu, 17 Nov 2022 10:11:03 +0800 Message-ID: <20221117021103.72959-1-jiangjiacheng@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500022.china.huawei.com (7.185.36.66) X-CFilter-Loop: Reflected X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yubihong@huawei.com, zhengchuan@huawei.com, linyilu@huawei.com, jiangjiacheng@huawei.com, xiexiangyou@huawei.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1668651644806100001 Content-Type: text/plain; charset="utf-8" These format are left unchanged when convert 'unsigned long' to 'unsigned long long', which caused compile warning. Signed-off-by: Jiang Jiacheng Reviewed-by: J=C3=A1n Tomko --- src/cpu/cpu_arm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index ef72d6dceb..3ec06edef4 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c @@ -639,7 +639,7 @@ virCPUarmDecode(virCPUDef *cpu, =20 if (!(model =3D virCPUarmModelFindByPVR(map, cpuData->pvr))) { virReportError(VIR_ERR_OPERATION_FAILED, - _("Cannot find CPU model with PVR 0x%03lx"), + _("Cannot find CPU model with PVR 0x%03llx"), cpuData->pvr); return -1; } @@ -656,7 +656,7 @@ virCPUarmDecode(virCPUDef *cpu, if (cpuData->vendor_id && !(vendor =3D virCPUarmVendorFindByID(map, cpuData->vendor_id))) { virReportError(VIR_ERR_OPERATION_FAILED, - _("Cannot find CPU vendor with vendor id 0x%02lx"), + _("Cannot find CPU vendor with vendor id 0x%02llx"), cpuData->vendor_id); return -1; } --=20 2.33.0