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: 1913361 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=F9OubvCB; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TzKYl0krlz1yWv for ; Tue, 19 Mar 2024 16:10:50 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmRk6-0005YO-20; Tue, 19 Mar 2024 01:10:30 -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 1rmRk4-0005Xo-Cs for qemu-ppc@nongnu.org; Tue, 19 Mar 2024 01:10:28 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rmRk2-0008G6-7X for qemu-ppc@nongnu.org; Tue, 19 Mar 2024 01:10:28 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4140eb3aeb9so14029315e9.3 for ; Mon, 18 Mar 2024 22:10:24 -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=DBUghv4eGmZvtj9klsHKT4S2zhTDjdod19FGuGAmaLCtLb0zb461X4MT21DLKgcb7O 8m1js29pEX+SKlOSw/pt/VlwXa8yEJbLfZPj62oYTc7H+GshKOzCcs7DP2dBd9kZqUOH osOXsD9cB0DxfhgCN6RJ2NGkTeNUuPaN2SLRvq7sBdqJqSG2U+6SEfPwSDnW9WMJH0sJ 3C25sTGbEGCiL/fCopvw0ewOu3B74a3dnEx3789nverXrWmY60P6iXtGh8VepbZOs6oR 1fcYiO26814QN563TscRLfld3W2MhC64A/VFo3150n2zh20Dg04SkH3v2gEujK8oG+GO d33g== X-Forwarded-Encrypted: i=1; AJvYcCVpfZEUaZagkbWahgyj8ceHJOnNVLo33DrmmAFLBTts5ALQG0SRoTjWudv3YnY/YZjS4XtW2eP/7pp9XXBg1PG7TIVB X-Gm-Message-State: AOJu0Yw8ifZ1PBMiYNERtS+n9odJr5aao999Lr8v1rw4voILyiMRDI6d vv3JN2YHkxWSllPbxSvYyONCNy45BCM0+qWrfzyreqM+F17J56BqaPEGaOFM/5U= X-Google-Smtp-Source: AGHT+IEKZWNOlEt10auwO3wQqNvgo9wTSgMIPunJ4TiKpMgRIx1o0Iw87XQWaglYvYxSURjWwnLLyQ== 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::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-ppc@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-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-ppc-bounces+incoming=patchwork.ozlabs.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; }