Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Mar 2008 10:13:07 -0800
From:      "Jack Vogel" <jfvogel@gmail.com>
To:        "Christopher M. Giordano" <CGiordano@cox.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: kernel build error in dev/igb
Message-ID:  <2a41acea0803011013r27d5202geeb212c984137cef@mail.gmail.com>
In-Reply-To: <47C96E82.9090304@cox.net>
References:  <47C96E82.9090304@cox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
cvsup, its already fixed.

On Sat, Mar 1, 2008 at 6:56 AM, Christopher M. Giordano
<CGiordano@cox.net> 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"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2a41acea0803011013r27d5202geeb212c984137cef>