From nobody Sat May 23 21:07:06 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1779377059; cv=none; d=zohomail.com; s=zohoarc; b=K4UexTRaxlhxjbAGdd/WJIm8MEcEOZV+V+bctEnSMDfNo6yhel0YUJS0KjPMVZPqQKeQ0owQSpRcE/mmWVgGs1RCavabcAPVXccmOD/w9gW6oPmUP8WVuAwWMcej9LQ7yxf0B8IDhVuBTF+QpE+Oyu/qsqimJHKvWythZRb/Xho= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1779377059; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=JJ0ZeDd7z92PalY004q5/w5bSmwRQA2n9ienzS9RmxU=; b=KdiDtxCiSiqf/r3Ohm+KGarFA+gaW5Eh42vrzVyRs0DUh2OAWiTFoCqxrDPVf1Sh28TzuMtl+zzq3H5k4EjETsecJGuBNM+foyHh/EpvCcH1VaVq5EBTdhpGCPkGvoe7ehbGenh93XrqQna4bfJwLBJGPHbG0WZIwI9p6HhCFfo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1779377059102418.3883553019085; Thu, 21 May 2026 08:24:19 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1315382.1585186 (Exim 4.92) (envelope-from ) id 1wQ5Ff-0004VA-Pq; Thu, 21 May 2026 15:23:59 +0000 Received: by outflank-mailman (output) from mailman id 1315382.1585186; Thu, 21 May 2026 15:23:59 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wQ5Ff-0004V3-N6; Thu, 21 May 2026 15:23:59 +0000 Received: by outflank-mailman (input) for mailman id 1315382; Thu, 21 May 2026 15:23:58 +0000 Received: from mx.expurgate.net ([194.145.224.20]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1wQ5Fd-0004Uw-N5 for xen-devel@lists.xenproject.org; Thu, 21 May 2026 15:23:57 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1wQ5Fc-0036G1-Sy for xen-devel@lists.xenproject.org; Thu, 21 May 2026 17:23:56 +0200 Received: from [10.42.69.9] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6a0f2386-5cb7-0a2a0a5109dd-0a2a4509e4da-6 for ; Thu, 21 May 2026 17:23:55 +0200 Received: from [217.140.110.172] (helo=foss.arm.com) by tlsNG-bad1c0.mxtls.expurgate.net with ESMTP (eXpurgate 4.56.1) (envelope-from ) id 6a0f238a-2497-0a2a45090019-d98c6eacdb88-1 for ; Thu, 21 May 2026 17:23:55 +0200 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4DC8A3AEC; Thu, 21 May 2026 08:23:49 -0700 (PDT) Received: from e125770.cambridge.arm.com (e125770.arm.com [10.1.199.43]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2B1893F7B4; Thu, 21 May 2026 08:23:53 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=foss header.d=arm.com header.i="@arm.com" header.h="From:To:Cc:Subject:Date" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1779377034; bh=ZLS2R0ODszTvUfzv4/d3UVm1fR2E1lJ3y4YDzpaln+Y=; h=From:To:Cc:Subject:Date:From; b=GGENntoz+mw/BDQBdp0U7LAS3cINuxj5V+T37s7xnymFs/faiVL6+vFy8xp5m0kn3 v6MfRNKI3cCiFJHiYOKZ0xD8jON7O22JdCWdSyW3uXg5VVcLJhO1JkgBXPUOic8xmJ xdVTHvOSgOnkrnyCl3RvaQJ7hzu7+5GdeZJwe4L4= From: Luca Fancellu To: xen-devel@lists.xenproject.org Cc: Anthony PERARD , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Andrew Cooper , Oleksii Kurochko Subject: [PATCH] tools/tests: Fix paging-mempool xen_pfn_t format strings Date: Thu, 21 May 2026 16:23:44 +0100 Message-Id: <20260521152344.2050899-1-luca.fancellu@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-purgate-ID: tlsNG-bad1c0/1779377035-8A18BA53-4B5C5189/0/0 X-purgate-type: clean X-purgate-size: 1575 X-ZohoMail-DKIM: pass (identity @arm.com) X-ZM-MESSAGEID: 1779377060956158500 Content-Type: text/plain; charset="utf-8" xen_pfn_t is not an unsigned long on all architectures. In particular, Arm32 builds see it as a 64-bit type, so printing it with %lx triggers a -Werror=3Dformat build failure. Use PRI_xen_pfn for the GFN diagnostics instead. Fixes: 66c982a5d3614 ("tests/paging-mempool: Extend to test P2M relocation") Signed-off-by: Luca Fancellu Reviewed-by: Andrew Cooper --- tools/tests/paging-mempool/test-paging-mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/tests/paging-mempool/test-paging-mempool.c b/tools/tests= /paging-mempool/test-paging-mempool.c index 3c87925288f1..9dd605f1ab3e 100644 --- a/tools/tests/paging-mempool/test-paging-mempool.c +++ b/tools/tests/paging-mempool/test-paging-mempool.c @@ -208,7 +208,7 @@ static int check_guest_marks(xen_pfn_t gfn, uint32_t ma= rk_start, size_t count) if ( errs[i] ) { rc =3D -1; - fail(" Fail: check mark unable to map gfn %05lx: %d\n", + fail(" Fail: check mark unable to map gfn %05"PRI_xen_pfn":= %d\n", gfns[i], errs[i]); continue; } @@ -216,7 +216,7 @@ static int check_guest_marks(xen_pfn_t gfn, uint32_t ma= rk_start, size_t count) if ( *mark =3D=3D exp ) continue; =20 - fail(" Fail: check mark: gfn %05lx expecting %08x (%u), got %08= x (%u)\n", + fail(" Fail: check mark: gfn %05"PRI_xen_pfn" expecting %08x (%= u), got %08x (%u)\n", gfns[i], exp, ~exp, *mark, ~*mark); rc =3D -1; } --=20 2.34.1