[PATCH 1/1] cmd: bdinfo: cleanup phys_addr_t output
Tom Rini
trini at konsulko.com
Wed Aug 5 22:28:39 CEST 2020
On Tue, Jul 28, 2020 at 05:56:33PM +0200, Heinrich Schuchardt wrote:
> We currently print the memory size with at least 8 hexadecimal digits.
> This creates a ragged output on 64 bit boards, e.g. on a Kendryte K210:
>
> DRAM bank = 0x0000000000000002
> -> start = 0x0000000080600000
> -> size = 0x0000000000200000
> memstart = 0x0000000000000000
> memsize = 0x00000000
> flashstart = 0x0000000000000000
> flashsize = 0x0000000000000000
> flashoffset = 0x0000000000000000
>
> All other numbers are printed with the number of digits needed for the type
> ulong. So use this value as minimum number of digits (precision) for
> printing physical addresses.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Reviewed-by: Heiko Schocher <hs at denx.de>
> Reviewed-by: Stefan Roese <sr at denx.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200805/d12995c8/attachment.sig>
More information about the U-Boot
mailing list