From patchwork Mon Mar 1 18:54:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 388702 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp3606110jap; Mon, 1 Mar 2021 10:54:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzP76RbEjJ4jTkHvTAe3g3YCt4ttF+/VxqcwSkSdpBtf5sqDH3Z0bx5Yqa61UPKPv9+AyiX X-Received: by 2002:a17:906:3488:: with SMTP id g8mr16872158ejb.282.1614624881208; Mon, 01 Mar 2021 10:54:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614624881; cv=none; d=google.com; s=arc-20160816; b=ykXAd6B3qOJVxhhKZik1CiM02WBWcav+IBHw0sxICYjdZsG74m/pKWVbNX/e/Z35O6 lS9HgeNMtuIwIV6NHULlodBohDLSPDMEVVPXKpeEp8doREW6Q5+5DceCNIX3xtdHjovO 2JioEaRgJG9qberrfxNFeKLgKelFDvUslFg7sGtdpcDyIaqqpBkcTyFkIl+U+NkHMxH4 fDkR1x6URFX4tIK7ZkrTbNrMs1ZrjHcU/QA05Ev9Kc37BjzDNhYlfnYpA7lSbUQkwpvu ySsEygpcB10cb/W6kNyKt80n9o1e7wQT3qleio53CIJtdTXAnUmimJBpYpxarRa2U0Nm z8lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:errors-to:sender:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:cc :mime-version:message-id:date:subject:to:from:delivered-to :dkim-signature; bh=1HNLdFkEmqNRvouy/18oWYeVYrU5IreqYxxgrNpgDjM=; b=vntvZmHCSQnj/ov42fA1VaFnYmcmkuyhk4Oim2p1PaTpozikxY1Esneq6X0DUd8a4n OU6NFzPiurZ0Ml3cshNoE6pJBMRHqHDh9weCXlGXfZ0HPzLbZ9myTbUq6EYRsGXd0ezB rMVTOGPPNIU3hxZmK0EwjmGmgY0AoS1cthFIiI3yNfvWA9x24IvkfWBgc1hVhMIACTC8 4b4MjIkjkwu8Q3x1eMWfbXhh8ikZwxqJKlH4JqNAC+zrG/mQ1gy9VGPb5XjfuaYUvjFq f8zejxFxL40emAxM56ZE99hckctIj9tPeEbHB++45btJV8uDpH8BAfYRgdkvKO8FKr/k CCzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ACyMip0B; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com. [63.128.21.124]) by mx.google.com with ESMTPS id c21si11082452edt.47.2021.03.01.10.54.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Mar 2021 10:54:41 -0800 (PST) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ACyMip0B; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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= 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 X-MC-Unique: 7qDfrBrLMUCHHuFFG_FfeA-1 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) Delivered-To: libvir-list@redhat.com 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) 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 Example: ../src/hyperv/hyperv_driver.c:3007:54: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Werror=format=] 3007 | virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach serial port %lu"), i); Signed-off-by: Cole Robinson --- Pushed src/hyperv/hyperv_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.29.2 Reviewed-by: Matt Coleman 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 = 0; i < def->nserials; i++) { if (hypervDomainAttachSerial(domain, def->serials[i]) < 0) { - virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach serial port %lu"), i); + virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach serial port %zu"), i); goto error; } } @@ -3012,7 +3012,7 @@ hypervDomainDefineXML(virConnectPtr conn, const char *xml) /* Attach networks */ for (i = 0; i < def->nnets; i++) { if (hypervDomainAttachSyntheticEthernetAdapter(domain, def->nets[i], hostname) < 0) { - virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach network %lu"), i); + virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not attach network %zu"), i); goto error; } }