
27 Feb
2004
27 Feb
'04
8:22 p.m.
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)
I am rewriting the patch so that 64bit usage can be CFG_ ed out or in...