From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 30 Jul 2008 14:09:19 +0200 Subject: [U-Boot-Users] [PATCH] bdinfo not showing correct info about memory size In-Reply-To: Your message of "Wed, 30 Jul 2008 13:54:50 +0200." <200807301354.50242.sr@denx.de> Message-ID: <20080730120920.02F3F248EC@gemini.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 In message <200807301354.50242.sr@denx.de> you wrote: > > > I don't think that it is a problem with my board config, otherwhise > > it won't show the correct size using print_num... > > Maybe other users didn't have any problems because their memory > > size is smaller than 256MB. > > Most likely you need to enable 64bit printf format (%ll) support: > > #define CFG_64BIT_VSPRINTF > #define CFG_64BIT_STRTOUL > > This is already done for all 440 PPC's (include/ppc4xx.h) in the current git > head. I'll merge this soon into the next branch of my ppc4xx repository, then > your problem should go away. Given the fact that print_lnum() unconditionally takes a u64 arg and unconditionally uses a %llX format, I thinkwe shoudl either fix print_lnum() for non-64bit cases, or drop the CFG_64BIT_VSPRINTF / CFG_64BIT_STRTOUL options completely. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If God had a beard, he'd be a UNIX programmer.