4 ms·
regards something specific Linus said: "We should also have some format for printing out "u32/u64" etc, but that's another issue and has the problem that gcc w
by willv 16y ago
regards something specific Linus said:
"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 http://linux.die.net/man/3/priu32
- mfukar 16y agoLinux is the implementation; if anything, it should provide a inttypes.h.
- Locke1689 16y agoWell, no. inttypes.h is defined in the ANSI specification and is provided by glibc. If it were unistd.h you would be right.
- mgedmin 16y agoI 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-format http://www.ohse.de/uwe/articles/gcc-attributes.html#func-for... -- but not if you invent your own % codes.