Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1908172imu; Fri, 14 Dec 2018 02:40:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/WhKRqNdXtQp6IhkPaQi1U9EjtE5qe3z33SZ/7jAPVgMaez9cYwuM85IixtnW+LAr0SZzwt X-Received: by 2002:a62:8d4f:: with SMTP id z76mr2439197pfd.2.1544784031531; Fri, 14 Dec 2018 02:40:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544784031; cv=none; d=google.com; s=arc-20160816; b=v262pQm+jl2Hn7luiXCmj06oGRngis/Y46XvvyM8eRgB6fpA8uAHwdAlGqrDndRK1q up24seswxfjjJfvX1DRoF1EwUtaMPP13JicsbFoBAr7GPA+nf8hSOTe/nHKaQhKidhvj 51Ca5sbyLw5zogezxO1lNgmeOhn8f+L0n9SByKBxJK5cN2K0PadM1lnp2O0i++6WgEqK 0/oExcyM9KYgcF0lMlVeSjdlTe+Xf0XaZOXEbxZxWirBL58OHZyseeTZYsEPfclcVAs5 IzvAcU9xO0tduZR7hAONAtgqL7Jg1jTF6Og1S5eyAyTwlHxP7ovByZoJ2g37Qb8QbrH1 1wnQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=hW4gMYQpuwjOaz/ni9Aos0bdQvGwg3OwaejOb0EbgBc=; b=W6/igb9dbkXYuSc0gCkMxfCKVNDIbldjtzhFrG42b3LJygPwmCJGeIUYHM494hi5B/ pyZXs4I9eC7MAkJmPNrDaPGvQrmTSdLnFVcx0edmLME3/dBJebbaDMfrjw0Pl2oq7NZW KamTndCWVWRwP3rV41XQDV+HVY/dm/dj2xgk3ET5bwA+7syKiR2bd7lc+//dv9qW71tT Pem6S3xOgeBhmjqYNbj5fYYCEq1HsMAiItLATIku8K7IkbIzExQDhuQgY2NJBsIZ5hG5 xIwoFf1dY7pukqqj1S5f8clBXQkMgHx9I9rCGvhKbdaYIpDYfYD+edBWb5LigchMGeBE 9CpA== 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 i5si3783925pfo.189.2018.12.14.02.40.16; Fri, 14 Dec 2018 02:40:31 -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 S1729626AbeLNKiA (ORCPT + 99 others); Fri, 14 Dec 2018 05:38:00 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:46617 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbeLNKiA (ORCPT ); Fri, 14 Dec 2018 05:38:00 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 43GRpF4STsz9v0tP; Fri, 14 Dec 2018 11:37:57 +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 66xo2yDZCMVl; Fri, 14 Dec 2018 11:37:57 +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 43GRpF3TgPz9v0t1; Fri, 14 Dec 2018 11:37:57 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 9EE778B8B0; Fri, 14 Dec 2018 11:37:58 +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 ReCGMNRBk1YG; Fri, 14 Dec 2018 11:37:58 +0100 (CET) Received: from PO15451 (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6C0228B8AF; Fri, 14 Dec 2018 11:37:58 +0100 (CET) Subject: Re: [PATCH] powerpc/prom: fix early DEBUG messages To: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <531e7e818b5c4867148412c7902a9cbeee5745ee.1544709040.git.christophe.leroy@c-s.fr> <87pnu4vd94.fsf@concordia.ellerman.id.au> From: Christophe Leroy Message-ID: <0cde4fdd-9d16-732f-ebf8-b06127929e63@c-s.fr> Date: Fri, 14 Dec 2018 11:37:58 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <87pnu4vd94.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 14/12/2018 à 07:22, Michael Ellerman a écrit : > Christophe Leroy writes: > >> diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c >> index fe758cedb93f..d8e56e03c9c6 100644 >> --- a/arch/powerpc/kernel/prom.c >> +++ b/arch/powerpc/kernel/prom.c >> @@ -749,7 +749,11 @@ void __init early_init_devtree(void *params) >> memblock_allow_resize(); >> memblock_dump_all(); >> >> +#ifdef CONFIG_PHYS_64BIT >> DBG("Phys. mem: %llx\n", memblock_phys_mem_size()); >> +#else >> + DBG("Phys. mem: %x\n", memblock_phys_mem_size()); >> +#endif > > Can we just do: > > DBG("Phys. mem: %llx\n", (unsigned long long)memblock_phys_mem_size()); > > ? > Yes that's obviously better, especially as we don't fix the length of the displayed value. Christophe