I understood that to refer to printf-style format specifiers that printk() uses. GCC can do type-checking for those: http://www.ohse.de/uwe/articles/gcc-attributes.html#func-for... -- but not if you invent your own % codes.
Linux is the implementation; if anything, it should provide a inttypes.h.
Well, no. inttypes.h is defined in the ANSI specification and is provided by glibc. If it were unistd.h you would be right.
I doubt the kernel can use anything that is defined in the glibc...
You're correct. The kernel does not include a C standard library.
"We should also have some format for printing out "u32/u64" etc, but that's another issue and has the problem that gcc won't understand them, so adding new formats is _hard_ from a maintenance standpoint. "
do they not use inttypes.h for that?
http://linux.die.net/man/3/priu32