From: Heiko Schocher Date: Wed, 29 Jul 2020 05:56:11 +0200 Subject: [PATCH 1/1] cmd: bdinfo: cleanup phys_addr_t output In-Reply-To: <20200728155633.96301-1-xypron.glpk@gmx.de> References: <20200728155633.96301-1-xypron.glpk@gmx.de> Message-ID: <236bcf02-2044-c8d9-0e96-73b956a760c8@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Heinrich, Am 28.07.2020 um 17:56 schrieb Heinrich Schuchardt: > 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 > --- > cmd/bdinfo.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de