diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2008-06-13 21:40:22 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2008-06-13 21:40:22 +0000 |
commit | 553a1b07733d9ed4576082cd30ff4484b0d548f7 (patch) | |
tree | 7638ff9213126c7a4b66a30df3e53339c5e8cfec /sys/dev/pci | |
parent | 203b60eba5b572a004139a65ad4f8ae2a457f399 (diff) |
fix compilation with BNX_DEBUG.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_bnx.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/pci/if_bnx.c b/sys/dev/pci/if_bnx.c index 0e9852063ea..7048f52554c 100644 --- a/sys/dev/pci/if_bnx.c +++ b/sys/dev/pci/if_bnx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bnx.c,v 1.62 2008/06/13 07:40:30 brad Exp $ */ +/* $OpenBSD: if_bnx.c,v 1.63 2008/06/13 21:40:21 brad Exp $ */ /*- * Copyright (c) 2006 Broadcom Corporation @@ -4383,7 +4383,7 @@ bnx_tx_encap(struct bnx_softc *sc, struct mbuf **m_head) DBPRINT(sc, BNX_INFO_SEND, "%s(): Start: prod = 0x%04X, chain_prod = %04X, " "prod_bseq = 0x%08X\n", - __FUNCTION__, *prod, chain_prod, prod_bseq); + __FUNCTION__, prod, chain_prod, prod_bseq); /* * Cycle through each mbuf segment that makes up @@ -4411,7 +4411,8 @@ bnx_tx_encap(struct bnx_softc *sc, struct mbuf **m_head) /* Set the END flag on the last TX buffer descriptor. */ txbd->tx_bd_flags |= htole16(TX_BD_FLAGS_END); - DBRUN(BNX_INFO_SEND, bnx_dump_tx_chain(sc, debug_prod, nseg)); + DBRUN(BNX_INFO_SEND, bnx_dump_tx_chain(sc, debug_prod, + map->dm_nsegs)); DBPRINT(sc, BNX_INFO_SEND, "%s(): End: prod = 0x%04X, chain_prod = %04X, " @@ -4437,7 +4438,7 @@ bnx_tx_encap(struct bnx_softc *sc, struct mbuf **m_head) DBRUNIF(1, sc->tx_mbuf_alloc++); DBRUN(BNX_VERBOSE_SEND, bnx_dump_tx_mbuf_chain(sc, chain_prod, - map_arg.maxsegs)); + map->dm_nsegs)); /* prod points to the next free tx_bd at this point. */ sc->tx_prod = prod; |