Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1899875imu; Fri, 14 Dec 2018 02:30:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/UANbriXNets65PzX7KJjJfzM8U77dZ87Qe/n6zd5qq/lgKECiR9pmK21vDqecP6gIsOl1k X-Received: by 2002:a62:5658:: with SMTP id k85mr2256588pfb.231.1544783423950; Fri, 14 Dec 2018 02:30:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544783423; cv=none; d=google.com; s=arc-20160816; b=SwWkI/G1GXKE+7ljQUDvRtFWAJ+KtU7cQqg6iDA59u/Ofq6Fy5bGUYNuHcgeqVbnrx yhr95MAwLTLv0RSBPi37cUwbI5QW2qOqd5c+16gi/53xKjnsLFFrSbCL/UJ5kwk1AOGX 1Nnhn/3EV/hZKCoPKTCVF/DwJrsPALxVjzIHT10+RfZBdpLyJAr6cE5XbOrXHKugAaWf 5q6BsKReb6LcQIgR1gYSLPr+OjjMK4Xg1CG5aKSr1TTdYBffWZNobt9gaYFysZ/EwGJn 0BY3bYUdhXIxJ6qvILZLBmtvYMJPjE36tI/Vh5SDDoQM+QTqxcEFR3EwaKuymEGorMI8 r6nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:message-id; bh=AUl6SVPOe/ACm62qyc/PBzlkThP88dwjESASwe1Tcmc=; b=SNyrUfLr+nAQIpa1lPyuxAbKLR/afgQCpAySr8/5Xv+zODp90W/7AYcjxxXbx8GZx1 qo7ZFOcM4lBP5AoBzgTnDBnYCVrTGWzGy5e0wXPIQB6IcZyX4KcEowxsB7sj0MxTsnuy 2dmWnTJY2tJiW1NSaGbwOAoFOALeMwTN0vZ2zX6QHRk+LLQ+OeNsVsyEXrjr3zqJ/8xL 2rDxTyOVjMXne+hd1A9X70Wmbgro7ui4S/8iK51zhtKnvt+RIY+2UlAFv0iPa5IDoeA0 rzLWFCZy7kMpSp9ik40ld4ESDhs5h3C4UwZFwu+wu6ZBKFZH1dT8j2cjhKNfiCO+MDMw 5gsg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si3948306pgn.258.2018.12.14.02.30.08; Fri, 14 Dec 2018 02:30:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729173AbeLNK1v (ORCPT + 99 others); Fri, 14 Dec 2018 05:27:51 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:12900 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728269AbeLNK1v (ORCPT ); Fri, 14 Dec 2018 05:27:51 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43GRZV74PgzB09ZX; Fri, 14 Dec 2018 11:27:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 36XgWSyIgkCL; Fri, 14 Dec 2018 11:27:46 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 43GRZV6YDKzB09ZV; Fri, 14 Dec 2018 11:27:46 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id CFC798B8AE; Fri, 14 Dec 2018 11:27:47 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Me0Y8NP_9X8p; Fri, 14 Dec 2018 11:27:47 +0100 (CET) Received: from po14163vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id AE97C8B8AC; Fri, 14 Dec 2018 11:27:47 +0100 (CET) Received: by po14163vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 850E87170A; Fri, 14 Dec 2018 10:27:47 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH v2] powerpc/prom: fix early DEBUG messages To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Fri, 14 Dec 2018 10:27:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- v2: cast instead of #ifdef %llx/%x 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 fe758cedb93f..87a68e2dc531 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_phys_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.13.3