From nobody Wed Apr 24 13:47:02 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=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1668181956; cv=none; d=zohomail.com; s=zohoarc; b=FmEiOU2bi0p9+gM02mP7W7qjRUhoJZuX1w8jhYlD6qA8SV9UvcMtUT0S9Bugvf0yIu1jyOhRvD7WyjknV3+fGF5qSmVmbWseU5Xxn4uj7oVwoAmh1Ruvq5FoycvYMgjqQAUHD28EC7Vp9ew8GBTdgpozCH+Cuxs0zdbXA0P28Cs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1668181956; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=fxHFyvmCfTr9nBwaB/XeGVCO5ukTgumVQ/Yj1ExAPy4=; b=X4TCm0aaDSpj1wiPpFRXSJGx7ok/KqVOawmSiS2Z6qkrLo12IXKRdiC2kBmaYkJTGNZG+WbcwL1NgK5W5L9NY1XQpRUxBRaaYojyi4HjOWfm4yYr4Nxj3XZkuxDARSu6EICe8DBUgPfBvkLUFppGeReTpnFc1G0c3+WXCJ2cb1I= 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=pass header.from= (p=none dis=none) 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 1668181956693250.15718114877143; Fri, 11 Nov 2022 07:52:36 -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-516-AgrTShTpNbOtYQFVs0NQnQ-1; Fri, 11 Nov 2022 10:52:28 -0500 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DBC3B101A54E; Fri, 11 Nov 2022 15:52:26 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id C6F3E492B0A; Fri, 11 Nov 2022 15:52:26 +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 ACBFB1946587; Fri, 11 Nov 2022 15:52:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 2BF851946586 for ; Fri, 11 Nov 2022 15:52:26 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 098FE4A9265; Fri, 11 Nov 2022 15:52:26 +0000 (UTC) Received: from localhost.localdomain (ovpn-192-88.brq.redhat.com [10.40.192.88]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9B4634A9256 for ; Fri, 11 Nov 2022 15:52:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668181954; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=fxHFyvmCfTr9nBwaB/XeGVCO5ukTgumVQ/Yj1ExAPy4=; b=Sk+44IJAyKrQp137o+Ec7KhbciMtoP1JPzZlqGsGNHV7pJvD7Lcuo8iHJ/SlCkhplmGtKh M0+CS1m+L1NT5+NZcdlD343Uo5mKcxYFJVY92XigeOOmhHpPlh4VOwmwfbIJusgHT5ZHdW Uvxe2QIbOHjJ2U9VQvJN+WGII7XBJJk= X-MC-Unique: AgrTShTpNbOtYQFVs0NQnQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Michal Privoznik To: libvir-list@redhat.com Subject: [PATCH] qemu_validate: Use proper printf directive for ssize_t Date: Fri, 11 Nov 2022 16:52:23 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 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: 1668181957459100001 Content-Type: text/plain; charset="utf-8"; x-default="true" In one of recent commits an error message was introduced. In this message a variable of type ssize_t is being printed out, but the corresponding format directive is %ld instead of %zd which breaks on 32bits systems. Switch to proper format. Signed-off-by: Michal Privoznik --- Pushed under trivial rule. src/qemu/qemu_validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index bd040c7ff8..c687df0bfc 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -5047,7 +5047,7 @@ qemuValidateDomainDeviceDefMemory(virDomainMemoryDef = *mem, while ((node =3D virBitmapNextSetBit(mem->sourceNodes, node)) = >=3D 0) { if (mem->size > sgxCaps->sgxSections[node].size) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("sgx epc size %lld on host node %ld i= s less than requested size %lld"), + _("sgx epc size %lld on host node %zd i= s less than requested size %lld"), sgxCaps->sgxSections[node].size, node, = mem->size); return -1; } --=20 2.37.4