From owner-svn-src-head@FreeBSD.ORG Tue Oct 26 17:12:15 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 072E71065672; Tue, 26 Oct 2010 17:12:15 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id BBDDA8FC13; Tue, 26 Oct 2010 17:12:14 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:1866:d44a:eec6:23e0] (unknown [IPv6:2001:7b8:3a7:0:1866:d44a:eec6:23e0]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D7BAC5C5A; Tue, 26 Oct 2010 19:12:13 +0200 (CEST) Message-ID: <4CC70BF9.30004@FreeBSD.org> Date: Tue, 26 Oct 2010 19:12:25 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.12pre) Gecko/20101016 Lanikai/3.1.6pre MIME-Version: 1.0 To: Attilio Rao References: <201010261616.o9QGGFgX053089@svn.freebsd.org> In-Reply-To: <201010261616.o9QGGFgX053089@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r214380 - head/sys/x86/x86 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2010 17:12:15 -0000 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.