Date: Tue, 26 Oct 2010 19:12:25 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: Attilio Rao <attilio@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r214380 - head/sys/x86/x86 Message-ID: <4CC70BF9.30004@FreeBSD.org> In-Reply-To: <201010261616.o9QGGFgX053089@svn.freebsd.org> References: <201010261616.o9QGGFgX053089@svn.freebsd.org>
index | next in thread | previous in thread | raw e-mail
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.
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CC70BF9.30004>
