how to kernel printf a int64_t?
Julian Elischer
julian at freebsd.org
Sun Nov 2 16:08:49 UTC 2014
On 11/2/14, 11:58 AM, Ian Lepore wrote:
> On Sun, 2014-11-02 at 11:20 +0800, Julian Elischer wrote:
>>
> Which is exactly the explanation for why "some people seem to have a
> problem with doing that." "Some people" would be "anyone who thinks it
> should be possible to read code as well as write it." This may be more
> correct in some pedantic sense, but %j and a cast is more readable.
Actually I don't believe that to be true, because casting can actually
change the
value. (truncation, sign change etc.)
If you really want to be sure to see what you should. then use
PRImumble...
or be sure of what printf is going to do on every architecture your code
is going to ever run on in the future..
> -- Ian
>
>
>
>
>
More information about the freebsd-hackers
mailing list