Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4593038pja; Thu, 21 Nov 2019 22:29:05 -0800 (PST) X-Google-Smtp-Source: APXvYqysFSRmLfVSfrEebclB1sNih3IRpKZCQZ1N1u6ddkGgSkFy5npli+bZItvXpSGYQroN60OD X-Received: by 2002:a17:906:cc93:: with SMTP id oq19mr20007400ejb.316.1574404145731; Thu, 21 Nov 2019 22:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574404145; cv=none; d=google.com; s=arc-20160816; b=WRy6+2gbjSWScD+tK7NlPpCjVMdTKx5c1u2nwdX+WNM9V2iBPFlbLNuOrV2/bpt2tX fHnwX9q8AK5/ZvH66nPOvM82Ld+m8KlHhe+P4MLpgmr7bOhS85JLfJrDxYRLcy/+9okm B+eakZ+wDfzXzfAiM/WojcWNR13WOQ0HPdJsPHm2r1Lw+3geQR1IN5wEcWwS0xb8ZGcF UYD1GDJqR1Y+LNUCxme1OdeGpXhn17Hqs7qQndjBnWsD/ZzV5d980cCbz9rAkkRUHOtl fGfRdaErNT9Cf9Qxuq/37Oaya5a5n1BvPvH/pJTgE8uIIaLa3dbJgnH3t1KdEo8LGBBm NLkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oAk1X1Upy5feIp5M11aC+Oa7i1bVs0N0/xc8C42pMB0=; b=BaJGEh4mNUuRBT/LcNIFxloQmiImjavc9BMZhBwTbuq7y4hqQa9LWw6SuLH7KcfGOL QjZrs3JVKefABYbhxMbhUg2l2p7K5hvqy049BCMrvpOxUtH3GCJ68j+aMXLzFn4pFWkm s/1DEUH84Sr9NItLoRmnEmXkXV8avfOZtALCDmg3KHE8m8hsyDz+cYQAcE/DB5TKpwCA XjJniORNoDjYVKYqcWlCGQ4eI998smVKYYfP2hvXYtEH5VaLWEbDnep/5fjTiVcPynqh p3TPdJ3F7j/GLzuoCDSt3L+mWArP7ahuAy/Zx5IcQtwBMUmyTmdgfj/lOFPm0VjNKu6X gDRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fjBRgD5v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b53si4313623edb.419.2019.11.21.22.28.37; Thu, 21 Nov 2019 22:29:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fjBRgD5v; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729254AbfKVGYZ (ORCPT + 99 others); Fri, 22 Nov 2019 01:24:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:56536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728139AbfKVFv1 (ORCPT ); Fri, 22 Nov 2019 00:51:27 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F05E520730; Fri, 22 Nov 2019 05:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574401886; bh=TvnrklSzh6sXwmGAPCZ0w0s7Anb3NdKGb5fXdATgkoM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fjBRgD5vn3SiH6VbMmCocfyJxrFm1QCi1oEPmPP5/dm9fpCyEEC+YrQiBNnzD6U4t LhJ1TyM3a2SAA3XstJEvCNZIgdMp34tWMgSBXMcRtFsZhNnXhiqmKL/oEL6WLMIfyn MBVV2usZJFScR2iaw9HXAW+kWrL0/1q/DzlDF3xg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Christophe Leroy , Michael Ellerman , Sasha Levin , linuxppc-dev@lists.ozlabs.org Subject: [PATCH AUTOSEL 4.19 120/219] powerpc/prom: fix early DEBUG messages Date: Fri, 22 Nov 2019 00:47:32 -0500 Message-Id: <20191122054911.1750-113-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191122054911.1750-1-sashal@kernel.org> References: <20191122054911.1750-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy [ Upstream commit b18f0ae92b0a1db565c3e505fa87b6971ad3b641 ] This patch fixes early DEBUG messages in prom.c: - Use %px instead of %p to see the addresses - Cast memblock_phys_mem_size() with (unsigned long long) to avoid build failure when phys_addr_t is not 64 bits. Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/kernel/prom.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index c4d7078e5295f..8e88f78e57dba 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c @@ -129,7 +129,7 @@ static void __init move_device_tree(void) p = __va(memblock_alloc(size, PAGE_SIZE)); memcpy(p, initial_boot_params, size); initial_boot_params = p; - DBG("Moved device tree to 0x%p\n", p); + DBG("Moved device tree to 0x%px\n", p); } DBG("<- move_device_tree\n"); @@ -689,7 +689,7 @@ void __init early_init_devtree(void *params) { phys_addr_t limit; - DBG(" -> early_init_devtree(%p)\n", params); + DBG(" -> early_init_devtree(%px)\n", params); /* Too early to BUG_ON(), do it by hand */ if (!early_init_dt_verify(params)) @@ -749,7 +749,7 @@ void __init early_init_devtree(void *params) memblock_allow_resize(); memblock_dump_all(); - DBG("Phys. mem: %llx\n", memblock_phys_mem_size()); + DBG("Phys. mem: %llx\n", (unsigned long long)memblock_phys_mem_size()); /* We may need to relocate the flat tree, do it now. * FIXME .. and the initrd too? */ -- 2.20.1