[U-Boot-Users] IDE LBA48 support and vsprintf 64bit support

Wolfgang Denk wd at denx.de
Sun Feb 29 17:42:10 CET 2004


In message <DCEAAC0833DD314AB0B58112AD99B93B06DA7B at ismail.innsys.innovsys.com> you wrote:
> > The hex hack can work in decimal too.  Even more of a hack, 
> > but it will extend your range significantly.
> > 
> > if(sector < 1000000000)
> >   printf("Sector %d\n", sector);
> > else
> >   printf("Sector %d%09d\n", (unsigned int)(sector / 
> > 1000000000), (unsigned int)(sector % 1000000000));
> > 
> > Testing is an exercize left to the reader ;-)
> 
> Except that this will increase the memory footprint, because of
> inclusion of 64bit math.
> (about the same amount or more than fixing vsprintf)

What do you think your "fix" to vsprintf will do?

Forget it. I will not add "long long" support  to  printf  without  a
really good reason.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The idea of male and female are universal constants.
	-- Kirk, "Metamorphosis", stardate 3219.8




More information about the U-Boot mailing list