mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] ARM: rockchip: dmc: reduce number of leading zeroes
Date: Mon,  5 Aug 2024 17:35:21 +0200	[thread overview]
Message-ID: <20240805153521.3085578-1-a.fatoum@pengutronix.de> (raw)

Driver probe currently results in:

  rockchip-dmc memory-controller.of: Detected memory size: 0x0000000080000000

which while correct is a bit hard to read, because of the number
of zeroes. Make it a bit more readable by showing zeroes to the left
only if the size up to 4G. This would turn the above into a more
readable:

  rockchip-dmc memory-controller.of: Detected memory size: 0x80000000

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/mach-rockchip/dmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-rockchip/dmc.c b/arch/arm/mach-rockchip/dmc.c
index 6bc9d9aabc94..81c7e2649e7f 100644
--- a/arch/arm/mach-rockchip/dmc.c
+++ b/arch/arm/mach-rockchip/dmc.c
@@ -206,7 +206,7 @@ static int rockchip_dmc_probe(struct device *dev)
 		memsize += rockchip_sdram_size(sys_rega, sys_regb);
 	}
 
-	dev_info(dev, "Detected memory size: %pa\n", &memsize);
+	dev_info(dev, "Detected memory size: 0x%08llx\n", (u64)memsize);
 
 	/* lowest 10M are shaved off for secure world firmware */
 	membase = 0xa00000;
-- 
2.39.2




             reply	other threads:[~2024-08-05 15:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-05 15:35 Ahmad Fatoum [this message]
2024-08-06  5:55 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240805153521.3085578-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox