Andi Kleen wrote:
quoted
Other systems have addressed this problem by extending printf with
portable %formats.
Problem is that gcc -Wformat doesn't know the new format codes,
and in Linux we still have to support old gcc versions.
Yes, gcc has been modified to understand the new %formats. That's the
advantage to distributing a full system and not just a kernel :)
Standard trick is to cast to long.
-Andi