svn commit: r214380 - head/sys/x86/x86

Dimitry Andric dim at FreeBSD.org
Tue Oct 26 17:12:15 UTC 2010


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.


More information about the svn-src-head mailing list