mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-05 11:10:21 +00:00
Previously, %d printed a 32-bit int. %ld and %lld printed 64-bit ints. So if you wanted to print a word-sized int (eg. a SizeT variable), you had to cast it to a Long and then print with %lld in order to work on both 32-bit and 64-bit platforms. I changed things so that %d prints a 32-bit int, %ld prints a word-sized int, and %lld prints a 64-bit int. There are two advantages to this: - it now matches the way the normal glibc printf() works; - you can print word-sized ints without casting. I also made the corresponding change for %u/lu/llu and %x/lx/llx, and I changed a couple of VG_(printf)() invocations accordingly. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4527