From nobody Tue May 7 10:51:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1614624881; cv=none; d=zohomail.com; s=zohoarc; b=JwlhrMABOrg5NI+fJ5bv+vAIWgAVsJpMElXKlqzG7OxXtK3cu5EkapsttzkHMDYXv2WlUK1Xo61nYqWOp9JJz1Eut0Pzsh8Y+QV7tD3twFrYnTGq2odyNi7i+qoadCLYblOSyLoiUCn+7xyWqdjDgrfaoP/hr9eCp7wNGM0BEH8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614624881; 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=1HNLdFkEmqNRvouy/18oWYeVYrU5IreqYxxgrNpgDjM=; b=lHhQk05BuGbay1SIP1AIMeiuwVf+Wuj+rAJqZVbtIKRt77n87/+AKWVnBJAJjjBiU4oxWU1IhR7GZbUbvFhc7wVuLkyf4sBdDZgZgh54eIMjyd5mgPG4Kazh6rrPVtKdFP0q9dd2m66k6EKwWY+MqYDiaWi5BYqmlH81ma1SRhw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1614624881196925.2793999008378; Mon, 1 Mar 2021 10:54:41 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-352-7qDfrBrLMUCHHuFFG_FfeA-1; Mon, 01 Mar 2021 13:54:38 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8961B107ACE3; Mon, 1 Mar 2021 18:54:30 +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 1987E60BFA; Mon, 1 Mar 2021 18:54:30 +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 DBD1F4E58D; Mon, 1 Mar 2021 18:54:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 121IsQkD016572 for ; Mon, 1 Mar 2021 13:54:26 -0500 Received: by smtp.corp.redhat.com (Postfix) id F02A119744; Mon, 1 Mar 2021 18:54:25 +0000 (UTC) Received: from worklaptop.home (ovpn-114-217.rdu2.redhat.com [10.10.114.217]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8286419D6C; Mon, 1 Mar 2021 18:54:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614624880; 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=1HNLdFkEmqNRvouy/18oWYeVYrU5IreqYxxgrNpgDjM=; b=ACyMip0BVvD9mDhKhcTHGtNn3VMWHahyxU0f5o8XRDsEeGubnna3Fd9HHb0tBcImA9RPoo 2OJPVtbD2/e5dcBRYin89mtOcu1z835Eum+CK/AVctcOviGBgZ+9zEbZmYTY1zeYJyClRG 68gpBpspqUj4MDo2SrvYGDVOLiKYMME= X-MC-Unique: 7qDfrBrLMUCHHuFFG_FfeA-1 From: Cole Robinson To: libvir-list@redhat.com Subject: [PATCH] hyperv: Fix 32bit compilation Date: Mon, 1 Mar 2021 13:54:17 -0500 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: Cole Robinson 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Example: ../src/hyperv/hyperv_driver.c:3007:54: error: format =E2=80=98%lu=E2=80=99 = expects argument of type =E2=80=98long unsigned int=E2=80=99, but argument = 7 has type =E2=80=98size_t=E2=80=99 {aka =E2=80=98unsigned int=E2=80=99} [-= Werror=3Dformat=3D] 3007 | virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not att= ach serial port %lu"), i); Signed-off-by: Cole Robinson --- Pushed src/hyperv/hyperv_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hyperv/hyperv_driver.c b/src/hyperv/hyperv_driver.c index 701456cdb3..e4f537bd12 100644 --- a/src/hyperv/hyperv_driver.c +++ b/src/hyperv/hyperv_driver.c @@ -3004,7 +3004,7 @@ hypervDomainDefineXML(virConnectPtr conn, const char = *xml) /* Attach serials */ for (i =3D 0; i < def->nserials; i++) { if (hypervDomainAttachSerial(domain, def->serials[i]) < 0) { - virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach ser= ial port %lu"), i); + virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach ser= ial port %zu"), i); goto error; } } @@ -3012,7 +3012,7 @@ hypervDomainDefineXML(virConnectPtr conn, const char = *xml) /* Attach networks */ for (i =3D 0; i < def->nnets; i++) { if (hypervDomainAttachSyntheticEthernetAdapter(domain, def->nets[i= ], hostname) < 0) { - virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach net= work %lu"), i); + virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach net= work %zu"), i); goto error; } } --=20 2.29.2