aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/lmc
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2005-10-04 04:49:21 +0000
committerScott Long <scottl@FreeBSD.org>2005-10-04 04:49:21 +0000
commit67a7895ff49fc9ea6dc4f4c14ebeb16ac62f2e29 (patch)
tree88656269cffc9327f9142b6cb40fa27dffcbc00c /sys/dev/lmc
parentb9aaa6961b9edc0133ec087228aabdfc59f2d7b1 (diff)
Notes
Diffstat (limited to 'sys/dev/lmc')
-rw-r--r--sys/dev/lmc/if_lmc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/lmc/if_lmc.c b/sys/dev/lmc/if_lmc.c
index d475babe7f58..6a50e8add3b9 100644
--- a/sys/dev/lmc/if_lmc.c
+++ b/sys/dev/lmc/if_lmc.c
@@ -2600,7 +2600,8 @@ create_ring(softc_t *sc, struct desc_ring *ring, int num_descs)
/* The DMA descriptor array must not cross a page boundary. */
if (size_descs > PAGE_SIZE)
{
- printf("%s: DMA descriptor array > PAGE_SIZE (%d)\n", NAME_UNIT, PAGE_SIZE);
+ printf("%s: DMA descriptor array > PAGE_SIZE (%d)\n", NAME_UNIT,
+ (u_int)PAGE_SIZE);
return EINVAL;
}
@@ -3952,7 +3953,7 @@ fbsd_poll(struct ifnet *ifp, enum poll_cmd cmd, int count)
{
softc_t *sc = IFP2SC(ifp);
-#if (__FreeBSD_version < 500000)
+#if (__FreeBSD_version < 700000)
if ((ifp->if_capenable & IFCAP_POLLING) == 0)
{
ether_poll_deregister(ifp);