What's the accepted way to printf something (like sizeof()) which
boils down to "unsigned int" on x86 and "unsigned long" on the LP64
In userland you can use %z for printing size_t's. In the kernel,
casting to intmax_t/uintmax_t and using %j is correct.
Um, using intmax_t to print size_t's would be incorrect, since it is
signed. Using uintmax_t would be bloat. Very few typedefed types
need the full bloat of [u]intmax_t, and size_t is unlikely to become
one of them before casting it to uintmax_t to print it becomes a style
bug in the kernel too (when %z is implemented).
To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message