From owner-freebsd-current@FreeBSD.ORG Sat Mar 1 15:07:31 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 A0BD71065679 for ; Sat, 1 Mar 2008 15:07:31 +0000 (UTC) (envelope-from cgiordano@cox.net) Received: from eastrmmtai102.cox.net (eastrmmtai102.cox.net [68.230.240.21]) by mx1.freebsd.org (Postfix) with ESMTP id 25ABD8FC1B for ; Sat, 1 Mar 2008 15:07:30 +0000 (UTC) (envelope-from cgiordano@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao103.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20080301145544.SLPC25565.eastrmmtao103.cox.net@eastrmimpo01.cox.net> for ; Sat, 1 Mar 2008 09:55:44 -0500 Received: from [192.168.0.11] ([68.230.134.223]) by eastrmimpo01.cox.net with bizsmtp id vqvP1Y0024pMr5g02qvP2t; Sat, 01 Mar 2008 09:55:23 -0500 Message-ID: <47C96E82.9090304@cox.net> Date: Sat, 01 Mar 2008 09:56:02 -0500 From: "Christopher M. Giordano" User-Agent: Thunderbird 2.0.0.6 (X11/20070902) MIME-Version: 1.0 To: freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 01 Mar 2008 15:20:01 +0000 Subject: 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 15:07:31 -0000 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);