Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1715363imu; Thu, 13 Dec 2018 22:23:52 -0800 (PST) X-Google-Smtp-Source: AFSGD/WJ6YZm0Sql6fpdsEIONqGV7yylpeRz6VG0jfPI3COW5egjsutjIQNexvtl/djhn4+7c4zP X-Received: by 2002:a62:5b83:: with SMTP id p125mr1731870pfb.116.1544768632903; Thu, 13 Dec 2018 22:23:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544768632; cv=none; d=google.com; s=arc-20160816; b=xa2czmTHDkHK/EQhnC3ttdDWw4wZ9czrydC2MtnJgzBv8VcAtwqX3sLlXtoXPPOm52 wnNCVAKqJVHPgsKrlzVl1THljUi9C/wnzvB58ckRoxp9bfRWp37zEH1a3/56XWp17/oV neG74hmjW90L9zY1FYXblRf0YxJNiht+Wy67D9UPTc7gJaXXf404CvR7oMsDAtofcxDR 6hX8eEBhii0B3BPuSeS050ZUoiIWBFLmh1Zd+nFBz43aaAyWEOum2AITNOzyd7UVuwF+ I1Ywm8TZ8POhtnt7nmiy7e+S2CfOP1zZXzQnCs1tu12/7e7XyVOtWb1R8tQ9jKnQm4ux O9Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=bxC9KFbTnMFjq5Dmo2Iq2mXSKSsms1NRgc0N87wgKhs=; b=cqxB5r32E/lZjwghnImKdLfJco3a+0RarWQ/zaJu+krrEaZNaxXAPiPt1OhkpQvNR1 TLC/19YJDzJk97mWW5HI7Co/hvshXCGKBJ1mUApVQ8CpZYM9AxZid7FqsWc7l3xb5A2x GR+Vfrp38WezbqOxGXrDC2bk0DFeQ9RuXR36wy+DRQB0qDA8ZfQhG8cEYjo1ZqCrhnvE bL/+nHDlCvd6aKizUJj1ihyPccN8vBY9hjzyl7oJHJ00ODyNF63AclGsdhh3k49gVvJj dPXH9d1/z0iN/qSEqUVsU04bqHSTiPdK2XS+0IA9063hfm9KrDNAczNE964VB1WuouAT Ucfg== 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 e6si3274648pgp.504.2018.12.13.22.23.37; Thu, 13 Dec 2018 22:23:52 -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 S1727210AbeLNGWg (ORCPT + 99 others); Fri, 14 Dec 2018 01:22:36 -0500 Received: from ozlabs.org ([203.11.71.1]:34031 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726533AbeLNGWg (ORCPT ); Fri, 14 Dec 2018 01:22:36 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43GL7Y02mzz9s3q; Fri, 14 Dec 2018 17:22:32 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/prom: fix early DEBUG messages In-Reply-To: <531e7e818b5c4867148412c7902a9cbeee5745ee.1544709040.git.christophe.leroy@c-s.fr> References: <531e7e818b5c4867148412c7902a9cbeee5745ee.1544709040.git.christophe.leroy@c-s.fr> Date: Fri, 14 Dec 2018 17:22:31 +1100 Message-ID: <87pnu4vd94.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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()); ? cheers