From owner-cvs-src@FreeBSD.ORG Wed Aug 6 07:32:01 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CFC637B401; Wed, 6 Aug 2003 07:32:01 -0700 (PDT) Received: from mailhub.fokus.fraunhofer.de (mailhub.fokus.fraunhofer.de [193.174.154.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D3FE43FAF; Wed, 6 Aug 2003 07:31:59 -0700 (PDT) (envelope-from brandt@fokus.fraunhofer.de) Received: from beagle (beagle [193.175.132.100])h76EVuv27223; Wed, 6 Aug 2003 16:31:56 +0200 (MEST) Date: Wed, 6 Aug 2003 16:31:56 +0200 (CEST) From: Harti Brandt To: Andrew Gallatin In-Reply-To: <20030806102544.A91333@grasshopper.cs.duke.edu> Message-ID: <20030806162837.D622@beagle.fokus.fraunhofer.de> References: <200308061130.h76BUrPt029894@repoman.freebsd.org> <20030806102544.A91333@grasshopper.cs.duke.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/en midway.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Hartmut Brandt List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2003 14:32:01 -0000 On Wed, 6 Aug 2003, Andrew Gallatin wrote: AG>Hartmut Brandt [harti@FreeBSD.org] wrote: AG>> harti 2003/08/06 04:30:53 PDT AG>> AG>> FreeBSD src repository AG>> AG>> Modified files: AG>> sys/dev/en midway.c AG>> Log: AG>> Print an array index that is computed as ptrdiff_t with %tu. AG> AG>I don't understand why, but this breaks the sparc64 and alpha tinderboxes. AG>See AG>http://docs.freebsd.org/cgi/getmsg.cgi?fetch=574500+0+current/freebsd-current Not really. The breakage was earlier when the ptrdiff_t was printed via %d. David O'Brien fixed that by converting to long and using %ld. The above commit now uses the knowledge that the difference is actually an array index and therefor uses %tu. The tinderbox log file seems to be from yesterday before David's fix. harti -- harti brandt, http://www.fokus.fraunhofer.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fraunhofer.de, harti@freebsd.org