2010/10/26 Dimitry Andric <d...@freebsd.org>:
> On 2010-10-26 18:16, Attilio Rao wrote:
>>
>>   Remove usage of PRI* macro for style compliancy.
>
> ...
>>
>> -       printf("  chunk %d: %"PRIu64"MB (%"PRIu64" pages)", seqnr,
>> PG2MB(pgs),
>> -           pgs);
>> +       printf("  chunk %d: %jdMB (%jd pages)", seqnr,
>> (uintmax_t)PG2MB(pgs),
>> +           (uintmax_t)pgs);
>
> If you cast to uintmax_t, you should use %ju instead. :)  Otherwise,
> cast to intmax_t, e.g. if the PG2MB macro results in a signed value.

This bug was already existing with the old version, but yes, you and
Bruce are obviously right.

Thanks,
Attilio


-- 
Peace can only be achieved by understanding - A. Einstein
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to