From patchwork Tue Mar 19 05:10:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 781065 Delivered-To: patch@linaro.org Received: by 2002:a5d:46c1:0:b0:33e:7753:30bd with SMTP id g1csp1758812wrs; Mon, 18 Mar 2024 22:11:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWVy2Ri0eNrXozunzD8MHT7E/j/auIvULqvlHVO2a1IGzAwd6Iu5jF9U/0088nPPqBDW6WKZIDViW9/WTUZaGxi X-Google-Smtp-Source: AGHT+IFMzVJiKXYI0LL9XDY7OEahh3BNVYzEft4wOsjJroqY51deBAr53zIUYD9qP3SZg4Q/WXre X-Received: by 2002:a67:fd92:0:b0:476:990f:c88a with SMTP id k18-20020a67fd92000000b00476990fc88amr1250641vsq.22.1710825065687; Mon, 18 Mar 2024 22:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710825065; cv=none; d=google.com; s=arc-20160816; b=Qyt4AjWyj0Wd6cPhbjCBSzD+2x+hlZTkW2CaorpzCRrEDvEHH475IajkX88gVSM26y y/gu8ond+DmpxYWOhDubXxRUPC5oRTdq7vqqz6kNcCt5v+ZzCGYLfXa1LQd637j+gyFy JdpAWxPH5Jll9ulzWvITYzaqubvj1hxK/8weqSJWwyo/7dWtYBXSujbV0cKVPGV5Zh/D oQMvZ0AXMCT7y6Z812xij8u3Q4vVEN4vGz6oW18KbPGX+ODK0yPHNyREs9/hAJ9OFVSV lte73snuevm3zBoY/y71Sz16+66SUL/mqvEpBmWlMt8wieFz8jOo7uWc1iPy0CdueE9E UeUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=ucpFIq95XGQD+XTDk/kf76iNWRMaho6XDtchMvg0EnA=; fh=F4/uXRdCaYqyb3ldmSNUj6B8fntYr7i07x2IimZIvDk=; b=Ls7wVMNxBFB64QAmKKceO0fZWz0+n5D+pZ2o3uthjiAXug9+m3nqt/a4y8EmZrbdOC mdNRVBn3gzoNNmC7Xribpwh2NYcwRCtjOi0c/61w0exA95G8kTh3S5gOQ3eGCOd6H9Hg /A6xZEMJ9zXW+LP6ARWx+svCEAuBWFTQ7MUo6Nnh5PKjkWIFlkXZJHCdaQMUUr6BfBem gPLAypAclTcFZCJl5lXYv/pbsUNgp7JmRZ6AsIgb79kR4CnOiM3mCvyj0bTnUPYVCiJq EWzDZyMDPFNNGeKXvAWtm1vqJFPwVTcFr9TJamqFnEinL3kEkJO4+qf2FaDcdSnblpnC Xbjg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F9OubvCB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s10-20020a05620a16aa00b0078a00fbfbb1si3533324qkj.352.2024.03.18.22.11.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Mar 2024 22:11:05 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=F9OubvCB; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmRk5-0005YK-CX; Tue, 19 Mar 2024 01:10:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmRk3-0005Xd-6Z for qemu-devel@nongnu.org; Tue, 19 Mar 2024 01:10:27 -0400 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmRk1-0008G8-Iq for qemu-devel@nongnu.org; Tue, 19 Mar 2024 01:10:26 -0400 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4140aadfe2eso16746875e9.1 for ; Mon, 18 Mar 2024 22:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710825023; x=1711429823; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ucpFIq95XGQD+XTDk/kf76iNWRMaho6XDtchMvg0EnA=; b=F9OubvCBiDMZG8SHLxvjjVtS1188T2Dv+5Yverz5zKoSJwlSyFkWk0DvbprSnOmtpF LnMRlIGhAycpI+mfUKpUY6mdsgoppci+KOcgP5L9UUSpKfFVUWW2P2fK7W8FbnjzsLVi ufYXV/pvy1L2icMSCYO08VMKoq3+1cIc4FT95K5NpUVHOzuEtS0TVRQxIMbEqOrCLPgu rr37/UvPu431crYTFwjqYs4jABYf3b9Ek3X4oBTu86v4pkQj7MomQla8fJJiysuBtjkv KdfHVuhA9YKMOXf/71yYf7mNSn3OMWs3o4OtVatm3gtMbToyvgVQMvrWHP9TiEdR+e/E J7cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710825023; x=1711429823; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ucpFIq95XGQD+XTDk/kf76iNWRMaho6XDtchMvg0EnA=; b=bH/Obg3GsIxOnAYuA3k+bCK89YbelUV0v5P+RmROPRLkNh4jCV9wWiHeotvDvu6Lxv Z6PfWVp+OBQG0ayNTsMkM5TNU6lNLmGd3I7dpQucMtEhjiq41Ph3xKy3K2Isp2cdjlrl m4aWqNJ+OyFOnyhX8H9XAIoAAiKpB6ZTl2WvN13RwQnodUdrXLAafQ5W8aTK46Hl0o0G DaJ0B+xNWnxsZiqcWzNPdXbf1117xSnKGIvlGLHoTEpQB2HFOBBaLtjytlwdPiMNejOr CN1E4RdGkdz0qcrp+a07RZpVrIriWKlPRiUd+OFvxo/OiPclEuIZHKg/pRVG3j9ZI2os 1CWQ== X-Gm-Message-State: AOJu0YyR2gr41NVjOYRVrsWAk2yx6ZdT7Bl063xzyZ1YtIhun2eydH0B eb2YcnN5AhwV4zapsAEO1J/jsJceq69nxOSbjagYjEGpOEqjxsmDJVmxfZeGq3auqjOl2AYCM9g t X-Received: by 2002:a05:600c:450e:b0:414:653f:26cd with SMTP id t14-20020a05600c450e00b00414653f26cdmr362003wmo.18.1710825023511; Mon, 18 Mar 2024 22:10:23 -0700 (PDT) Received: from m1x-phil.lan ([176.176.166.129]) by smtp.gmail.com with ESMTPSA id jg24-20020a05600ca01800b0041408d77ae8sm9368279wmb.20.2024.03.18.22.10.22 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 18 Mar 2024 22:10:23 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Nicholas Piggin , qemu-ppc@nongnu.org, Daniel Henrique Barboza , Leandro Lupori , =?utf-8?q?Philippe_Mathieu?= =?utf-8?q?-Daud=C3=A9?= Subject: [PATCH] target/ppc/mmu-radix64: Use correct string format in walk_tree() Date: Tue, 19 Mar 2024 06:10:20 +0100 Message-ID: <20240319051021.6752-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=philmd@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 'mask', 'nlb' and 'base_addr' are all uin64_t types. Use the corresponding PRIx64 format. Fixes: d2066bc50d ("target/ppc: Check page dir/table base alignment") Signed-off-by: Philippe Mathieu-Daudé --- target/ppc/mmu-radix64.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/ppc/mmu-radix64.c b/target/ppc/mmu-radix64.c index 5823e039e6..690dff7a49 100644 --- a/target/ppc/mmu-radix64.c +++ b/target/ppc/mmu-radix64.c @@ -300,8 +300,8 @@ static int ppc_radix64_next_level(AddressSpace *as, vaddr eaddr, if (nlb & mask) { qemu_log_mask(LOG_GUEST_ERROR, - "%s: misaligned page dir/table base: 0x"TARGET_FMT_lx - " page dir size: 0x"TARGET_FMT_lx"\n", + "%s: misaligned page dir/table base: 0x%" PRIx64 + " page dir size: 0x%" PRIx64 "\n", __func__, nlb, mask + 1); nlb &= ~mask; } @@ -324,8 +324,8 @@ static int ppc_radix64_walk_tree(AddressSpace *as, vaddr eaddr, if (base_addr & mask) { qemu_log_mask(LOG_GUEST_ERROR, - "%s: misaligned page dir base: 0x"TARGET_FMT_lx - " page dir size: 0x"TARGET_FMT_lx"\n", + "%s: misaligned page dir base: 0x%" PRIx64 + " page dir size: 0x%" PRIx64 "\n", __func__, base_addr, mask + 1); base_addr &= ~mask; }