summaryrefslogtreecommitdiffstats
path: root/sys/dev/en
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2006-03-21 15:00:10 +0000
committerharti <harti@FreeBSD.org>2006-03-21 15:00:10 +0000
commita1a2e842fad27542c61a42970adc9ccc62e3eac2 (patch)
treef7f3d9e868b9d832e5f4bd974bf07988ebfd4e75 /sys/dev/en
parentcfaf71ad4b6044ddebd8abcc5fce3056590f73df (diff)
downloadFreeBSD-src-a1a2e842fad27542c61a42970adc9ccc62e3eac2.zip
FreeBSD-src-a1a2e842fad27542c61a42970adc9ccc62e3eac2.tar.gz
Subtracting two pointers produces a ptrdiff_t not a size_t so use
the %td to print this instead of %zu or %d.
Diffstat (limited to 'sys/dev/en')
-rw-r--r--sys/dev/en/midway.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/en/midway.c b/sys/dev/en/midway.c
index 119aa1c..b6c2b32 100644
--- a/sys/dev/en/midway.c
+++ b/sys/dev/en/midway.c
@@ -1098,7 +1098,7 @@ en_start(struct ifnet *ifp)
tx = vc->txslot;
if (m->m_pkthdr.len > EN_TXSZ * 1024) {
- DBG(sc, TX, ("tx%zu: packet larger than xmit buffer "
+ DBG(sc, TX, ("tx%td: packet larger than xmit buffer "
"(%d > %d)\n", tx - sc->txslot, m->m_pkthdr.len,
EN_TXSZ * 1024));
EN_UNLOCK(sc);
@@ -1109,7 +1109,7 @@ en_start(struct ifnet *ifp)
if (tx->mbsize > EN_TXHIWAT) {
EN_COUNT(sc->stats.txmbovr);
- DBG(sc, TX, ("tx%d: buffer space shortage",
+ DBG(sc, TX, ("tx%td: buffer space shortage",
tx - sc->txslot));
EN_UNLOCK(sc);
m_freem(m);
@@ -1120,7 +1120,7 @@ en_start(struct ifnet *ifp)
/* commit */
tx->mbsize += m->m_pkthdr.len;
- DBG(sc, TX, ("tx%zu: VCI=%d, speed=0x%x, buflen=%d, mbsize=%d",
+ DBG(sc, TX, ("tx%td: VCI=%d, speed=0x%x, buflen=%d, mbsize=%d",
tx - sc->txslot, vci, sc->vccs[vci]->txspeed,
m->m_pkthdr.len, tx->mbsize));
@@ -1164,7 +1164,7 @@ en_loadvc(struct en_softc *sc, struct en_vcc *vc)
vc->rxslot->cur = vc->rxslot->start;
- DBG(sc, VC, ("rx%d: assigned to VCI %d", vc->rxslot - sc->rxslot,
+ DBG(sc, VC, ("rx%td: assigned to VCI %d", vc->rxslot - sc->rxslot,
vc->vcc.vci));
}
@@ -1217,7 +1217,7 @@ en_open_vcc(struct en_softc *sc, struct atmio_openvcc *op)
slot->vcc = vc;
KASSERT (_IF_QLEN(&slot->indma) == 0 && _IF_QLEN(&slot->q) == 0,
- ("en_rxctl: left over mbufs on enable slot=%tu",
+ ("en_rxctl: left over mbufs on enable slot=%td",
vc->rxslot - sc->rxslot));
vc->txspeed = 0;
@@ -1819,7 +1819,7 @@ en_rx_drain(struct en_softc *sc, u_int drq)
m = NULL; /* assume "JK" trash DMA */
if (EN_DQ_LEN(drq) != 0) {
_IF_DEQUEUE(&slot->indma, m);
- KASSERT(m != NULL, ("drqsync: %s: lost mbuf in slot %zu!",
+ KASSERT(m != NULL, ("drqsync: %s: lost mbuf in slot %td!",
sc->ifp->if_xname, slot - sc->rxslot));
uma_zfree(sc->map_zone, (struct en_map *)m->m_pkthdr.rcvif);
}
@@ -1852,7 +1852,7 @@ en_rx_drain(struct en_softc *sc, u_int drq)
ATM_PH_VPI(&ah) = 0;
ATM_PH_SETVCI(&ah, vc->vcc.vci);
- DBG(sc, INTR, ("rx%zu: rxvci%d: atm_input, mbuf %p, len %d, "
+ DBG(sc, INTR, ("rx%td: rxvci%d: atm_input, mbuf %p, len %d, "
"hand %p", slot - sc->rxslot, vc->vcc.vci, m,
EN_DQ_LEN(drq), vc->rxhand));
@@ -3197,7 +3197,7 @@ en_dump_mregs(struct en_softc *sc)
printf(" rxvc slot mappings:");
for (cnt = 0 ; cnt < MID_N_VC ; cnt++)
if (sc->vccs[cnt]->rxslot != NULL)
- printf(" %d->%zu", cnt,
+ printf(" %d->%td", cnt,
sc->vccs[cnt]->rxslot - sc->rxslot);
printf("\n");
}
@@ -3231,7 +3231,7 @@ en_dump_rx(struct en_softc *sc)
printf(" recv slots:\n");
for (slot = sc->rxslot ; slot < &sc->rxslot[sc->en_nrx]; slot++) {
- printf("rx%zu: start/stop/cur=0x%x/0x%x/0x%x mode=0x%x ",
+ printf("rx%td: start/stop/cur=0x%x/0x%x/0x%x mode=0x%x ",
slot - sc->rxslot, slot->start, slot->stop, slot->cur,
slot->mode);
if (slot->vcc != NULL) {
OpenPOWER on IntegriCloud