
29 Feb
2004
29 Feb
'04
5:42 p.m.
In message DCEAAC0833DD314AB0B58112AD99B93B06DA7B@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@denx.de
The idea of male and female are universal constants.
-- Kirk, "Metamorphosis", stardate 3219.8