From owner-freebsd-current@FreeBSD.ORG Sat Mar 1 18:26:44 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0E36106566B for ; Sat, 1 Mar 2008 18:26:44 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.236]) by mx1.freebsd.org (Postfix) with ESMTP id 69E4D8FC18 for ; Sat, 1 Mar 2008 18:26:44 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: by qb-out-0506.google.com with SMTP id a10so6452136qbd.7 for ; Sat, 01 Mar 2008 10:26:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=wRDCdL081z0d5SHbskteBn/GIcETP2XOMNfA4BY5WNQ=; b=LPWY2MAumCY4EuwE1pa8c/uXkgOu+i9Gr1MY/ukkLMnqxf/c25WbU8fIIGkkIvLh71TUGMuVE40/9seGc4dej+xdcb4oGG4Lm5AmGhUDb16/WtoICzgnA3Lrk821ZH4zUEpmImud/PWIimvM79fJFMyDCn8qqsZkKT9+2bOQW5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tf9l0ovLVklO/VpFiVaWxheqnZooLy1QGVybDaSZdmyGNxuNOOGaw20jfr/fSh10feb2G2oDQBf5lpbvgcL5kwWYU8Dy3NfUlyBHzo8R4ZZsoHMr8ohHf5ck9hZrP0I5yr9Ao1O8VMEuk0WKbP2kn0RjG/aI6J42q2/jtg/XJjU= Received: by 10.114.132.5 with SMTP id f5mr2652297wad.50.1204395187371; Sat, 01 Mar 2008 10:13:07 -0800 (PST) Received: by 10.114.177.4 with HTTP; Sat, 1 Mar 2008 10:13:07 -0800 (PST) Message-ID: <2a41acea0803011013r27d5202geeb212c984137cef@mail.gmail.com> Date: Sat, 1 Mar 2008 10:13:07 -0800 From: "Jack Vogel" To: "Christopher M. Giordano" In-Reply-To: <47C96E82.9090304@cox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47C96E82.9090304@cox.net> Cc: freebsd-current@freebsd.org Subject: Re: kernel build error in dev/igb X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2008 18:26:45 -0000 cvsup, its already fixed. On Sat, Mar 1, 2008 at 6:56 AM, Christopher M. Giordano wrote: > Kernel cvsup'ed around 3 AM today. > Build dies in src/sys/dev/igb due to a printf format specifier > conflict between %lu and u64 args. My patch to workaround > is below. > > > Index: if_igb.c > =================================================================== > RCS file: /opt/FreeBSD/cvs/src/sys/dev/igb/if_igb.c,v > retrieving revision 1.4 > diff -u -r1.4 if_igb.c > --- if_igb.c 1 Mar 2008 04:36:24 -0000 1.4 > +++ if_igb.c 1 Mar 2008 14:44:18 -0000 > @@ -4207,11 +4207,11 @@ > device_printf(dev, "Queue(%d) tdh = %d, tdt = %d\n", i, > E1000_READ_REG(&adapter->hw, E1000_TDH(i)), > E1000_READ_REG(&adapter->hw, E1000_TDT(i))); > - device_printf(dev, "no descriptors avail event = %lu\n", > + device_printf(dev, "no descriptors avail event = %llu\n", > txr->no_desc_avail); > - device_printf(dev, "TX(%d) IRQ Handled = %lu\n", txr->me, > + device_printf(dev, "TX(%d) IRQ Handled = %llu\n", txr->me, > txr->tx_irq); > - device_printf(dev, "TX(%d) Packets sent = %lu\n", txr->me, > + device_printf(dev, "TX(%d) Packets sent = %llu\n", txr->me, > txr->tx_packets); > } > > @@ -4219,11 +4219,11 @@ > device_printf(dev, "Queue(%d) rdh = %d, rdt = %d\n", i, > E1000_READ_REG(&adapter->hw, E1000_RDH(i)), > E1000_READ_REG(&adapter->hw, E1000_RDT(i))); > - device_printf(dev, "RX(%d) Packets received = %lu\n", rxr->me, > + device_printf(dev, "RX(%d) Packets received = %llu\n", rxr->me, > rxr->rx_packets); > - device_printf(dev, "RX(%d) Byte count = %lu\n", rxr->me, > + device_printf(dev, "RX(%d) Byte count = %llu\n", rxr->me, > rxr->rx_bytes); > - device_printf(dev, "RX(%d) IRQ Handled = %lu\n", rxr->me, > + device_printf(dev, "RX(%d) IRQ Handled = %llu\n", rxr->me, > rxr->rx_irq); > } > device_printf(dev, "LINK IRQ Handled = %u\n", adapter->link_irq); > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >