From owner-svn-src-all@FreeBSD.ORG Fri Aug 13 10:50:42 2010 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BE0A1065673; Fri, 13 Aug 2010 10:50:42 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id 34DC88FC14; Fri, 13 Aug 2010 10:50:42 +0000 (UTC) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 62C6D1FFC33; Fri, 13 Aug 2010 10:50:41 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 2E35084525; Fri, 13 Aug 2010 12:50:41 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Bruce Evans References: <201008121358.o7CDwk0d098768@svn.freebsd.org> <86pqxn50vr.fsf@ds4.des.no> <4C6414A7.6020306@FreeBSD.org> <868w4bda7e.fsf@ds4.des.no> <4C643352.5010508@FreeBSD.org> <20100813200216.U12816@delplex.bde.org> Date: Fri, 13 Aug 2010 12:50:41 +0200 In-Reply-To: <20100813200216.U12816@delplex.bde.org> (Bruce Evans's message of "Fri, 13 Aug 2010 20:25:28 +1000 (EST)") Message-ID: <86iq3ess5a.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@FreeBSD.org, Takanori Watanabe , svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, John Baldwin Subject: Re: svn commit: r211221 - head/usr.sbin/acpi/acpidump X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2010 10:50:42 -0000 Bruce Evans writes: > - `platform_class' has type uint16_t. u_int is larger than that on all > supported machines, and also on unsupported ones with 16-31 bit u_ints. > Thus the cast has almost no effect, and has no effect on the result. you have to cast it to *something*, unless you're willing to assume blindly that uint16_t =3D=3D unsigned short (and use %h). > Anyway, almost all typedefed types should be cast to [u]intmax_t for > printing, so that you don't have to know too much about what they are. long or even int is fine in many cases, e.g. uid_t, mode_t DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no