[Xorp-hackers] PATCH: Logging improvements, fix artificial deal for xorpsh commit.

Bruce Simpson bms at incunabulum.net
Wed Oct 7 01:36:16 PDT 2009


Ben Greear wrote:
>
> Will add an #ifdef that could be twiddled in scons.

Excellent...

>
>> * %llu is not a portable format specifier, and 'unsigned long long' is
>> not a portable type, please don't use them in portable code.
>
> Ok, I can use uint64_t, but what do you use instead of %llu to print it?

%j and intmax_t is ISO C99 portable. It sucks because it means casting 
to the widest integer type on the platform, but it's a known quantity. 
'long long' has been a problem since well before Sun brought out SPARCV9.

cheers,
BMS



More information about the Xorp-hackers mailing list