From owner-cvs-all@FreeBSD.ORG Sun Jan 21 16:29:51 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4253E16A404; Sun, 21 Jan 2007 16:29:51 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id C95E813C43E; Sun, 21 Jan 2007 16:29:49 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 1B3FF48800; Sun, 21 Jan 2007 17:29:48 +0100 (CET) Received: from localhost (cvl74.internetdsl.tpnet.pl [83.19.93.74]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 5F12A456B1; Sun, 21 Jan 2007 17:29:33 +0100 (CET) Date: Sun, 21 Jan 2007 17:28:47 +0100 From: Pawel Jakub Dawidek To: Scott Long Message-ID: <20070121162847.GA19379@garage.freebsd.pl> References: <200701201932.l0KJWNST091647@repoman.freebsd.org> <45B271AD.9000503@samsco.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: <45B271AD.9000503@samsco.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: * X-Spam-Status: No, score=1.7 required=3.0 tests=BAYES_00, RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_XBL autolearn=no version=3.0.4 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, Alexander Leidinger , cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/compat/linprocfs linprocfs.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2007 16:29:51 -0000 --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 20, 2007 at 12:46:53PM -0700, Scott Long wrote: > Alexander Leidinger wrote: > >netchild 2007-01-20 19:32:23 UTC > > FreeBSD src repository > > Modified files: > > sys/compat/linprocfs linprocfs.c Log: > > Fix tinderbox build on amd64. > > Revision Changes Path > > 1.104 +2 -2 src/sys/compat/linprocfs/linprocfs.c >=20 > Try the following instead: >=20 > --- linprocfs.c 20 Jan 2007 19:32:23 -0000 1.104 > +++ linprocfs.c 20 Jan 2007 19:46:29 -0000 > @@ -474,8 +474,8 @@ > state =3D 'R'; >=20 > if (ratelimit =3D=3D 0) { > - printf("linprocfs: don't know how to handle unkno= wn FreeBSD state %d/%jd, mapping to R\n", > - kp.ki_stat, (intmax_t)sizeof(linux_state)); > + printf("linprocfs: don't know how to handle unkno= wn FreeBSD state %d/%zd, mapping to R\n", > + kp.ki_stat, sizeof(linux_state)); AFAIK sizeof() returns size_t, which is unsigned, so %zu should be used. %zd is used for ssize_t. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFs5S/ForvXbEpPzQRAgd1AJ4xhDSVewOS4K0ebV/Ouzg9AZaaZgCfQRaK rT+3Mxo1Q6vAtn31j29mTpM= =QvAQ -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv--